乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: shamsam1

vba for attaching material(bmp,jpeg) to layer in autocad

[复制链接]

55

主题

197

帖子

8

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
416
发表于 2008-8-11 10:07:05 | 显示全部楼层
the Materials Collection was introduced when the render-er changed in 2007.
Materials in 2006 and earlier are defined by the old ACAD_RENDER ads program and are not accessible via activex - I don't know if there is even a command line version for attaching materials to a layer.
These are the only commands defined by the ACAD_RENDER arx:
c:3dsin, c:3dsin
    c:3dsout, c:3dsout
    c:background, c:background
    c:finish, c:finish
    c:fog, c:fog
    c:light, c:light
    c:lsedit, c:lsedit
    c:lslib, c:lslib
    c:lsnew, c:lsnew
    c:matlib, c:matlib
    c:render, c:render
    c:renderupdate, c:renderupdate
    c:rendscr, c:rendscr
    c:replay, c:replay
    c:rfileopt, c:rfileopt
    c:rmat, c:rmat
    c:rpref, c:rpref
    c:saveimg, c:saveimg
    c:scene, c:scene
    c:setuv, c:setuv
    c:showmat, c:showmat
    c:stats, c:stats
回复

使用道具 举报

27

主题

242

帖子

18

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
335
发表于 2008-8-11 11:28:55 | 显示全部楼层
thanks jab jbuzbee
at least some thing i got to start with ... ..wiill experiment with it tomorrow
回复

使用道具 举报

18

主题

65

帖子

49

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
107
发表于 2008-8-11 11:50:43 | 显示全部楼层
here's another thought:
could you set up a standard material/layer drawing?  have the materials already attached to the layer.  then you could import the layers via objectdbx.  You could even use a naming convention or include the material in the description:
3d-wall-stucco-red . . . "sand finish stucco with red paint finish"
??
I've got an import layers routine in AutoLISP, but it requires OpenDCL (which is free) for the GUI:
OpenDCL
http://sourceforge.net/projects/opendcl/?abmode=1
回复

使用道具 举报

18

主题

65

帖子

49

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
107
发表于 2008-8-11 12:10:40 | 显示全部楼层
i have materail list and layer list ...so i just need to attach materiel to particular layer by using command which i am doing in 2007 as i pasted lisp the code above..same thing i need to do in 2005
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-4 01:42 , Processed in 0.431235 second(s), 59 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表