cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Can anyone provide a good example of the dg_inherit_from_connected function?

PetePickettII
12-Amethyst

Can anyone provide a good example of the dg_inherit_from_connected function?

There is very little documentation on this.  

 

I have a simple block (in wiring diagram) with 5 ports on it.  Each port has a Label attached to it (labels are not attached to the block but to the ports)

 

I run single fibers to each port.  I want the Port to grab the "color" parameter (or any parameter) from the wire and that calculated parameter will be pushed to the text label.  It should be easy right?

 

Thanks in advance! 

Patiently waiting....

baby-yoda-soup.jpg

1 REPLY 1

Hello Pete,

 

Here is the parameter you need to create :

 

SoretteMichel_1-1620044630992.png

 

SoretteMichel_0-1620044460271.png

the first attribute (forward/reverse) is not important here as the wire color does not depend on the fiber orientation

the second attribute defines the type of diagram you're using

the third defines the name of the parameter you want to collect from the wire

the last parameter is set to 0 so the system search the color on the highest member of the connected object (does not matter here as we only have simple wires connected

 

Once this parameter is created, simply add it to the ports of your connector and make sure the checkbox to calculate the value is checked.

 

Hope this clarifies the definition

Top Tags