Determine if A-Side Definition exists iLogic

Determine if A-Side Definition exists iLogic

Rob67ert
Collaborator Collaborator
1,586 Views
4 Replies
Message 1 of 5

Determine if A-Side Definition exists iLogic

Rob67ert
Collaborator
Collaborator

I like to add an A-Side definition if there is none when i save my sheet metal part.

Is there a way te determine if an A-Side already exists with iLogic?

 

Robert

If you find this reply helpful ? It would be nice if you use the Accept as Solution or Kudos button below.
0 Likes
Accepted solutions (1)
1,587 Views
4 Replies
Replies (4)
Message 2 of 5

Rob67ert
Collaborator
Collaborator
Does anyone know how to solve this?
Robert

If you find this reply helpful ? It would be nice if you use the Accept as Solution or Kudos button below.
0 Likes
Message 3 of 5

HermJan.Otterman
Advisor
Advisor
Accepted solution

Hello Robert,

 

with this code (iLogic) you can get the "AsideStatus"

 

Dim smPart As PartDocument = Thisapplication.ActiveDocument

Dim oSMCompdef As Inventor.SheetMetalComponentDefinition = smPart.ComponentDefinition

MsgBox(oSMCompdef.ASideFaceStatus.ToString)

 

kASideDefault 106241 The A-Side face is determined by Inventor.
kASideSick 106242 The A-Side face is specified but invalid.
kASideUpToDate 106243 The A-Side face is specified and up-to-date.

(this is from the help)

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 4 of 5

Rob67ert
Collaborator
Collaborator
Hi Herm Jan,

I was so close to it, the MsgBox(oSMCompdef.ASideFaceStatus.ToString gave me the correct answer.
Thanks
Robert

If you find this reply helpful ? It would be nice if you use the Accept as Solution or Kudos button below.
0 Likes
Message 5 of 5

HermJan.Otterman
Advisor
Advisor

great that I could help!

 

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


0 Likes