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: 

Method Argument Error

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
tim.mulder
342 Views, 2 Replies

Method Argument Error

Hello All,

 

Could someone please explain to me why I would be getting a Method arguments must be enclosed in parentheses error on the following line of code

 

Component.InventorComponent("00000-H-A00-P-001_Handrail 48.3x3.2 CHS:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure

What do I need to do to fix it?

Your help is much appreciated

 

Kind Regards

 

Tim

2 REPLIES 2
Message 2 of 3
LukeDavenport
in reply to: tim.mulder

Hi Tim,
I've tried the following line on a new assembly and it works fine. If you
have that single line on its own without text preceding and following does
it still error?

Component.InventorComponent("BLAHBLAH:1").BOMStructure =
BOMStructureEnum.kDefaultBOMStructure
Message 3 of 3
tim.mulder
in reply to: LukeDavenport

Thanks for your reply Luke,

 

It was a copy & paste from another forum post.

I did re-type the code as I know copying & pasting can cause issues.

Don't ask me why but I re-typed the code again for a 3rd time & it worked <Bangs head against Wall>

 

Thank you for your help though

 

Kind Regards

 

Tim

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

Post to forums  

Autodesk Design & Make Report