Yes. You can get lots of information about whatever items you have selected. Component properties, location, etc. can all be captured by automation. Question is what do you want to collect and how do you want to format it in the text file.
Hi, and yes it is possible like mentioned by Patrick. But you need to give us a direction. Are you looking for exported data from
- Variant Manager
what are you using / what are you lookign for ?
We are looking to be able to get information from schematic symbol selection (s). As an current example you can not copy the symbol name from a selected symbol in the XDX properties gui. It is blocked from accidental changes perhaps, but you are unable for a symbol name field selection and copy.
2 of 2 people found this helpful
The following script gets both the symbol name and another property value you can specify. Run it by pasting the following command into the command line toolbar in DxDesigner:
Where <script_path> is the folder location of the script file and script_name.vbs is the name of the script file.
Here is the script: (you can copy this directly into a text editor and save it to a file like get_prop_value.vbs, then run as above.)
set app = GetObject(,"ViewDraw.Application")
prop_name = InputBox("What property name do you want values for?")
str = get_prop_value(prop_name)
msgbox "str is " & vbcrlf & str
set view = app.ActiveView
set comps = view.Query(128, 1)
str = ""
For Each comp In comps
refdes = comp.Refdes
set attr = comp.FindAttribute(prop_name)
if not attr is nothing then
value = attr.Value
set sym = comp.SymbolBlock
ary = Split(sym.GetName(1), ".")
symbolname = ary(0)
If Not attr Is Nothing Then
str = str & refdes & vbTab & symbolname & vbTab & attr.Value & vbCrLf
get_prop_value = str
Thanks for sharing Patrick.
I appreciate the time and direct help.