Home | Forum | User list | Calendar | Rules | Register | Login

You are not logged in.
XtraCAD Forum / CAD-Duct Solids/CAD-Mech Scripting API / How do I Access Supports #1 using a script Moderated by Admin, Andy Robins, Nick Hyland  
Author
Message Pages: 1
willwea
CAD Manager

From: Seattle, WA
Registered: 08-July-2009
Posts: 13
I am trying to change all of the copper pipe in a drawing to not contain Roller Hanger as an ancillary. I would like to set it to none. Is there a way to access the "Support #1" field from item properties, Manufacturing tab in a script? I have been trying to use item.Support but have not been able to get it to work.

_______________________________________
Will
WXP 64 bit- Dell T5500
CAD-Mech v2.38.218
2010 MEP 64 bit

22-July-2010 19:21:44
Website  
willwea
CAD Manager

From: Seattle, WA
Registered: 08-July-2009
Posts: 13
I figured it out.........


item.support.locked = false
item.support["Supports #1"].Value = "None"
item.support.locked = true


_______________________________________
Will
WXP 64 bit- Dell T5500
CAD-Mech v2.38.218
2010 MEP 64 bit

22-July-2010 19:57:01
Website  
Pages: 1    
Jump to
Powered by PunBB
© Copyright 2002-2007 Rickard Andersson