Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
gma
Advocate
859 Views, 2 Replies

Set subassembly to flexible by ilogic.

Hello,

 

Is it possible to always set a assembly to flexible... So when i put it in an assembly, it will be standard flexible.

 

If not.

 

Is it possible to make an ilogic so when I put a subassembly into an assembly, I can run a rule so every subassembly starting with "StandardLeg" will be flexble?

 

Thanks in advance.

JhoelForshav
in reply to: gma

@gma 

I don't think you can make the subassembly always flexible on place... You can however run this code in the main assembly after you've placed your components to make the subassemblies starting with "StandardLeg" flexible :slightly_smiling_face:

Dim oAsm As AssemblyDocument = ThisDoc.Document
For Each oOcc As ComponentOccurrence In oAsm.ComponentDefinition.Occurrences
	Try
	If oOcc.Definition.Document.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject _
		AndAlso oOcc.Name.StartsWith("StandardLeg") Then oOcc.Flexible = True
	Catch
	End Try
Next

 

gma
Advocate
in reply to: JhoelForshav

Solved

 

Thank you very much