Author Topic: Connector Material Connectivity  (Read 406 times)

0 Members and 1 Guest are viewing this topic.

Offline TonyHolsingerTopic starter

  • Full Member
  • ***
  • Posts: 177
  • Country: us
  • Gender: Male
Connector Material Connectivity
« on: Jun 13, 2019, 02:44:10 PM »
Is it possible to change this via scripting?

Offline DotNet

  • Full Member
  • ***
  • Posts: 171
  • Country: us
  • Gender: Male
    • MICLOGIC
Re: Connector Material Connectivity
« Reply #1 on: Jun 13, 2019, 05:59:05 PM »
Is it possible to change this via scripting?

Not directly. You could create a copy of the Male Pipe Thread Connector giving it the desired connectivity, then change the connector itself via scripting.
« Last Edit: Jun 13, 2019, 06:02:04 PM by DotNet »

Offline TonyHolsingerTopic starter

  • Full Member
  • ***
  • Posts: 177
  • Country: us
  • Gender: Male
Re: Connector Material Connectivity
« Reply #2 on: Jun 13, 2019, 06:08:38 PM »
I like the way you think

Offline edsharp

  • Full Member
  • ***
  • Posts: 186
  • Country: us
  • Gender: Male
Re: Connector Material Connectivity
« Reply #3 on: Jun 14, 2019, 06:13:23 PM »
FYI

Connector connectivity and connector material connectivity are different things

you are looking at Material connectivity you do not have acess to that at the connector level, that is on the .itm.

not all .itms have that... example you wouldnt want all MPT to only connect to carbon steel.. then you would need one for CS, Copper, Brass , etc.

but you may want a copper MPT adapter to only have the MPT side connect to brass for a valve

bottom line- i do not know of a way to access that via scripting,

 

Offline frozen3

  • Full Member
  • ***
  • Posts: 53
  • Country: us
  • Gender: Male
Re: Connector Material Connectivity
« Reply #4 on: Jun 27, 2019, 05:01:50 PM »
I have a script... See below. Someone blew up some drawings and had flanges on cast-iron. This changes the 150# flange to no-hub.

This might have been made from my last co-worker, but may have been from somewhere else. I wish I could remember and credit the originator. (Joey?)

Code: [Select]
dim lp
for lp=1 to item.connectors
  if item.connector[lp].value="150 FF Flg*" then
    item.connector[lp].value="NoHub"

rem Lock the Connector so when edited it does not re-lookup the connector from the spec

    item.connector[lp].locked=true
    item.update()   
  endif
next