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: 

I logic masters I could use some help

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Ikruse
439 Views, 2 Replies

I logic masters I could use some help

Good morning everyone,

 

I could use some help with a I logic project I am working on. I have created and published a formed sheet metal angle to our content center with no issues. However I am having issues after placing from the content center into an assembly with the active style not applying the correct sheet metal rule on size changes. The thickness will update, however the bend will fail due to the sheet metal rule not updating. So I created a simple external I logic code to set the active sheet metal style, this only works on a part level basis and I am hoping someone can help me make it work in the assembly level during the change in size.

 

I have attached the ipart I placed inside the content center, the family table spreadsheet from the content center, and the external i logic code I tried for setting the active sheet metal style.

 

I logic masters what am I missing?

 

Thank you in advance,

 

Isaac

 

 

2 REPLIES 2
Message 2 of 3
HermJan.Otterman
in reply to: Ikruse

Hello Ikruse,

 

I have created a screencast, http://autode.sk/2fowvrY

The problem is that the models Thickness is not corresponding with sheetmetal styles thickness,

 

in the Ipart list delete the THICKNESS column.

in the model set the Thickness to the Thickness parameter.

 

I turned off the rules because they might get in the way.

 

and then the part works....

 

after that You can publish it, but as far as I know, the Ilogic rules don't come with it!.

 

I hope this helps.

 

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


Message 3 of 3

to shorten your iLogic code:

 

Dim ostring As String = "SH77676-4xt"

Dim Firstpart As String = Strings.Left(ostring, Strings.InStr(ostring, "-") - 1)

 

the second line will return "SH77676"

 

so, this can replace your long iLogic rule.

Dim ostring As String = iProperties.Material

Dim Firstpart As String = Strings.Left(ostring, Strings.InStr(ostring, "-") - 1)

SheetMetal.SetActiveStyle(Firstpart)

 

 

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


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

Post to forums  

Autodesk Design & Make Report