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: 

Placing Content center component using VBA

11 REPLIES 11
Reply
Message 1 of 12
cecil1992
1828 Views, 11 Replies

Placing Content center component using VBA

We are developing a macro for steel structures and we will be very pleased to know about the program to insert or place a content center component in assembly through VBA programming. If there are provisions for changing the object type and changing length in that importing process it will be very helpful.

11 REPLIES 11
Message 2 of 12

Hi

 

Please take a look first at what's doable in the API Help Files samples, see

 

Place Content Center Parts API Sample

Replace content center part API Sample

 

I hope it helps,

Philippe.

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 12
cecil1992
in reply to: cecil1992

I am using autodesk inventor 2009 & 2011... and i dont find any such samples.... is it only there in 2013 package?

Tags (3)
Message 4 of 12

Yes it's been added few releases ago. There was no API access to CC before, sorry for the bad news.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 5 of 12
cecil1992
in reply to: cecil1992

Thanks for your reply... Which version actually can suit my need... Please suggest.... ortell me  some other autodesk software that can help me...

Tags (1)
Message 6 of 12

Please take a look at the 2013 API Help Files, you can find it on the Inventor Developer Center. The version in which the feature was introduced is indicated at the bottom of each property/method. Some of the CC API was introduced in 2010, there has been incremental additions since then.

 

cc.png



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 7 of 12

Thanks again... Please let me know which version can actually suit my
purpose... Which version has provisions for adding CC through API(VBA
programming), Specifically steel structures like beams, channels and
angles..... and allows me to specify length through program....
Message 8 of 12
cecil1992
in reply to: cecil1992

Thanks again.... can you please tell me in which version exactly VBA programming can be done for placing CC components like angles, channels and beams by specfying length through program and logics....

Tags (1)
Message 9 of 12

According to Help Files, looks like 2011 can do it...



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 10 of 12

thnk u....it helped me a lot...
Message 11 of 12
Szaboj
in reply to: cecil1992

Hi

 

Would you please share your solution?

 

I want to be able to insert a component from content center as custom and promt the user for a "Length" input.

 

Best regards/

Jozsef

Message 12 of 12
cecil1992
in reply to: Szaboj

I resolved this issue by creating a sketch and saving it as a part file h
in a specified folder. Then through code i fetched the sketch and extruded
to required length. What i actually needed was a ISMC channel and i
obtained that by above method.

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

Post to forums  

Autodesk Design & Make Report