Question
jlink question - measure from a coordinate system to a given coordinate system?
JLink application, WF3
I'm trying to assemble a light to a coordinate system origin. I know the
CSO has a given name, and I've traversed the assembly to find all the CSO's
that match that name. Now, however, I need to determine where the geometry
resides relative to the CSO of the top-level assembly. I tried using
GetTransform, but this gives the Transform matrix from the CSO to the CSO of
the part.
If that's not making sense, here's a description of my program:
Traverse the assembly, finding every instance of 1234.prt
For each instance of 1234.prt, get its location relative to the assembly CSO
& store it in a list, then delete it from the assembly.
For each record in the list, assemble 5678.prt in the same location in the
assembly (comment: if I didn't desire 5678.prt to be fully constrained, I
could stop here, but this leaves it packaged)
Traverse the assembly, finding all components with a CSO named "CS_LIGHT"
For each CS_LIGHT, get its location relative to the assembly CSO <==== this
is the step I'm having trouble with
If CS_LIGHT is in the correct location, constrain 5678.prt to this CSO.
Thanks in advance.
--
Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
I'm trying to assemble a light to a coordinate system origin. I know the
CSO has a given name, and I've traversed the assembly to find all the CSO's
that match that name. Now, however, I need to determine where the geometry
resides relative to the CSO of the top-level assembly. I tried using
GetTransform, but this gives the Transform matrix from the CSO to the CSO of
the part.
If that's not making sense, here's a description of my program:
Traverse the assembly, finding every instance of 1234.prt
For each instance of 1234.prt, get its location relative to the assembly CSO
& store it in a list, then delete it from the assembly.
For each record in the list, assemble 5678.prt in the same location in the
assembly (comment: if I didn't desire 5678.prt to be fully constrained, I
could stop here, but this leaves it packaged)
Traverse the assembly, finding all components with a CSO named "CS_LIGHT"
For each CS_LIGHT, get its location relative to the assembly CSO <==== this
is the step I'm having trouble with
If CS_LIGHT is in the correct location, constrain 5678.prt to this CSO.
Thanks in advance.
--
Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

