Adding End Connections to your equipment or components.
When you place you component in like a valve and then other components,
You may want to add the their end connections like Flanges etc..
If you Right click on a valve,
The menu pops up and you can assign an end connection.
Though, if you try this for a normal component.
you do not have this option.
It is easy to add this in but it may take some tweaking to the Symbol scale and block itself that I will go into later.
Navigate to the Project Setup and open it.
Locate the component,
If you try looking through the properties,
you may notice that it is missing the Endcode Property.
We will add it in now,
Add the details as shown below:
Property name: EndConnections
Display name: End Connections
Case and layout is critical so make sure it is the same as shown.
The string may seem an odd choice as it is tempting to add it as a Selection List instead,
If you did this, you would need to go through a lot more work.
by using the exact naming as shown,
Plant references the already existing end connections,
though this does bring in a small challenge later.
The Property EndConnection should now be added.
Select OK to test it.
Right Click on it and select an End Connection.
If the End Connection is out of scale to the Component,
we need to adjust the scale of the component inside the block and on the Symbol Settings.
The reason this is happening is that the End Connections have their own insertion scale that gets scaled again by the component that it is being used on,
this is why you have to play a balancing act between the Scale of the component inside the block and the Symbol Scale.
Go back to the Project Setup and navigate to the component,
Select Edit Symbol,
The Symbol Settings should pop up.
Change the scale to what you think is correct,
I changed mine from 10 to 5,
this effectively halves the size of the component.
Select the Edit Block..
Then scale it to suit what you think is correct.
I scaled this to a factor of 2,
this Doubles the size of the component.
After this you may be wondering why we Halved the one and Doubled the other.
This should be the same size?
This is due to what I brought up earlier,
The End Connections have their own base scale that gets added to the components scale,
So by reducing the scaling amount,
the End connections wont scale up as much and we increased the components size in the block to compensate.
When you place a New Instance of the Component,
The scaling should be OK or near what you need,
You may need to refine it another time or two to get an exact match.