jbuzbee 发表于 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

JNieman 发表于 2008-8-11 11:28:55

thanks jab jbuzbee
at least some thing i got to start with ... ..wiill experiment with it tomorrow

shamsam1 发表于 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

shamsam1 发表于 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
页: 1 [2]
查看完整版本: vba for attaching material(bmp,jpeg) to layer in autocad