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: 

Sheet Metal - Ilogic

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
iva.btblan
704 Views, 12 Replies

Sheet Metal - Ilogic


I can't figure out the error in the rule.
Someone can help to understand.
I can not find the error.

 

Thank you!

12 REPLIES 12
Message 2 of 13
JelteDeJong
in reply to: iva.btblan

I cant open your model (other version) but what i understand from the pdf is that you want to update the parameters in the model 09.04.00100:1 from a rule in the assembly. In that case you need to turn around the statements in your code.:

Parmeter("09.04.00100:1", "Thickness") = Espessura
Parmeter("09.04.00100:1", "Comprimento") = Comprimento

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 13
iva.btblan
in reply to: JelteDeJong

I made the changes.
The problems with the thickness I can not solve.

I'm sending the pictures to understand better.
Can you help me?

Message 4 of 13
JelteDeJong
in reply to: iva.btblan

sry thickness parameter cant be edit directy. but with the following code it should work:

 

Dim doc As AssemblyDocument = ThisApplication.ActiveDocument
Dim occ As ComponentOccurrence = doc.ComponentDefinition.Occurrences.ItemByName("09.04.00100:1")
Dim partDoc As PartDocument = occ.ReferencedDocumentDescriptor.ReferencedDocument
Dim sheetmetalDef As SheetMetalComponentDefinition = partDoc.ComponentDefinition
sheetmetalDef.ActiveSheetMetalStyle.Thickness = Thickness

 

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 13
iva.btblan
in reply to: JelteDeJong

Thank you for your attention!
I performed according to orientation.
Going a problem and I can't solve it.
You can help me. Again?

Message 6 of 13
JelteDeJong
in reply to: iva.btblan

try this: (i changed the variable thickness to Espessura)

Dim doc As AssemblyDocument = ThisApplication.ActiveDocument
Dim occ As ComponentOccurrence = doc.ComponentDefinition.Occurrences.ItemByName("09.04.00100:1")
Dim partDoc As PartDocument = occ.ReferencedDocumentDescriptor.ReferencedDocument
Dim sheetmetalDef As SheetMetalComponentDefinition = partDoc.ComponentDefinition
sheetmetalDef.ActiveSheetMetalStyle.Thickness = Espessura

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 7 of 13
iva.btblan
in reply to: JelteDeJong

Excellent. Worked.
Thank you!
Without your help, you'd never make it.
Why is this message sruge?

Message 8 of 13
iva.btblan
in reply to: iva.btblan

What is the best way to control 09.04.00012?

Thanks for helping.

Message 9 of 13
iva.btblan
in reply to: iva.btblan

How to eliminate this error?

Message 10 of 13

@iva.btblan,

 

Please provide non confidential data and steps to reproduce the scenario.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 11 of 13

Can I send the files?

Message 12 of 13

@iva.btblan,

 

Yes, you can send files. Make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 13 of 13

 
I managed to solve the problem!
Thank you for your attention.

I am doubtful about another matter.
I will be shipping soon.
How do I warn you?

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report