Apache2k Posted August 20, 2012 Posted August 20, 2012 Hello everybody. We have a custom lisp that worked fine in Acad2000. Now we are using the 2012 version of acad and the lisp is not working anymore. The reason is the user material library. The old lisp: We had a material library like for woods and metals. When the user selected for example the birch wood, the lisp changed the selected objects color to a specific color like 40 and gave the object the birch texture (jpg, from texture library). Now for some reasons the new autocad doesnt like to work in this way. So my question is: is there any way to add color and material to selected object from the user library by one click? I know that this can be done step by step manually, but there is the risk that some user will attach wrong materials. Thanks for helping. Quote
MSasu Posted August 20, 2012 Posted August 20, 2012 I believe you are referring to textures for rendering. In previous versions of AutoCAD it was possible to associate material textures with layers or colors and transfer it this way to objects. The render module was changed significantly in new versions, so I'm not sure that this association method is still supported. Most probably you will need to re-write the routine. Quote
Apache2k Posted August 20, 2012 Author Posted August 20, 2012 Thanks MSasu for the reply, I did try to re-write it but just can figure out how. If i do it manually then its ok. I activate the object, open the material browser, select a material from user library, the selected material jumps to Document library, right click from the material and assign to selected. This is what im trying to make automatic. If i use chprop and select change material and type in the name of the material, AutoCAD cant locate it as its not searching from the user material library even when its loaded Just dont know how to call the material by name from an other library. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.