VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add/Create render Materials

4 REPLIES 4
Reply
Message 1 of 5
ramanusu
431 Views, 4 Replies

Add/Create render Materials

Hi All,

add/create render materials to current drawing file using VBA code. Can I have any sample code?

Thanks,

Ramanusu

Tags (3)
4 REPLIES 4
Message 2 of 5
Alfred.NESWADBA
in reply to: ramanusu

Hi,

 

just to give feedback: I have not seen any rendering-specific options in any API accessable by VBA (also to say, not searched that for years now). I used LISP therefore.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 5
ramanusu
in reply to: Alfred.NESWADBA

Thanks Alfred. Can I have sample Lisp code. It’s great helpful for me.

Message 4 of 5
Alfred.NESWADBA
in reply to: ramanusu

Hi,

 

no chance, it's years ago and within a project not active any more, so I would have to search through archives for hours 😉

But you can search for "vla-put-Material" as that is the lisp function to assign materials, so you'll find functionality about materials used within LISP.

 

Good luck, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 5
ramanusu
in reply to: Alfred.NESWADBA

Thanks for your time spend for me. I have few question “vla-put-Material” function to attach material to layer or solid. I can’t fund function for add material to current document from standard material library.  

 

thanks

Ramanusu

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost