Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
op_thorsager
in reply to: WCrihfield

just a quick explaination - i know the code posted was nowhere near functional, but more of a general visualization of what i was trying to achieve. the parameter named "partLocation" is the location in which the copy of the parts i want to get.

quick process timeline of my tool:

1) open assembly

2) adjust model as needed

3) export to a selected folder, in which a folder named after the drawing number will be made.

4) in here there are two folders created called "2D" and "3D".

5) The folder named 3D is where a copy of the original assembly and used parts will be made.

 

the component parameter named "Location" is a text parameter which updates to the root folder of the selected path in the assembly (step 3) 

 

What the partlocation parameter is used for is basically to get the specific "3D" folder, instead of the root folder, so that iLogic knows where to look for the reference replacement

 

i cleaned up a bit and this is is how it's achieved:

	Dim partpath As String = ThisDrawing.ModelDocument.ComponentDefinition.Parameters.Item("Location").Value
	PartLocation = partpath & "\3D\"

 i'll be trying out the code you posted, if anything i'll atleast have the correct setup to get the new model references.

 

as for the double (=) i realized that aswell shortly after posting this thread, and changed it up, same goes for the shared variables.

i dont know if what i wrote made a little more sense