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: 

Programmatically Select Assembly Component in VBA

1 REPLY 1
SOLVED
Reply
Message 1 of 2
nannerdw
1671 Views, 1 Reply

Programmatically Select Assembly Component in VBA

I'm trying to select an assembly component using

 

ThisApplication.ActiveDocument.SelectSet.Select (compOcc)

where "compOcc" is an object of type "ComponentOccurrence," but it gives me an error "438 Object doesn't support this property or method."

1 REPLY 1
Message 2 of 2
nannerdw
in reply to: nannerdw

I figured it out.  I had to add the "Call" statement.

Call ThisApplication.ActiveDocument.SelectSet.Select(compOcc)

 

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

Post to forums  

Autodesk Design & Make Report