Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

block name = solid name

1 REPLY 1
Reply
Message 1 of 2
akosi
295 Views, 1 Reply

block name = solid name

hi

can this be done in vba?

see attached image..solid.png

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: akosi

Hi,

 

Should be doable. You can set the name of a body using "SurfaceBody.Name" property. From your quick description, it is hard to figure out what would be your workflow. Do you want to prompt the user so he can select a block or do you want to parse the existing blocks...? Both approaches are possible. It is however not possible to automatically bind the name of the solid to the name of the block, if that's what you meant. You would need to run the code each time the block name is modified, so it can update the name of the solid. Maybe a modeling event will be fired if the block name is modified, so you could use that to do the update.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report