Quantcast
Channel: Mentor Graphics Communities : Discussion List - All Communities
Viewing all 2158 articles
Browse latest View live

Error - Pin count in a cell is different than in the referencing part

$
0
0

I imported an Altium project to Xpedition xDX Design. Both schematic and layout were imported correctly. However, i am having trouble to import parts into central libraries. In Altium, the pin count in symbol doesn't need to match pin count in footprint. One example, there are four mounting pins in a USB connector and you don't need to add those mounting pins into symbols. When i imported this kind of components into central libraries, i always received this error.

2016-09-09 16_00_44-Library Services.png

Here is what i tried to fix it.

  1. Deleted these parts from central libraries.
  2. Modified the symbol (added mounting pins)
  3. Still failed to copy original cell from PCB project to central libraries.

 

Any thoughts?

 

Thanks.


Variant Manager excel report from script

$
0
0

     I've recently began scripting for dxdesigner with vbs script, both of which are relatively new to me. I need to write a script that generates an excel report from the variant manager.

This is not the BOM report, which I can do in vbscript easily, the one i need is when you right click on the variant document in the manger and select reports > Microsoft Excel. Does any one know how to access this functionality through a vbscript? ive gone through the automation references many times, if what im trying to do is even possible, any help what so ever would be appreciated.

 

Attached is a visual of the option I need to access from a script in the dxdesigner interface.

 

thank you for your time.

 

variant manager.jpg

Selecting an object in an area

$
0
0

hi,

I am new in developing automation in pcb env. using c# .Net

 

As part of a MCAD-ECAD interface we are developing we need to give a solution for a solder mask placement in the layout.

We get the solder mask location from the IDF file, but since the mentor IDF's importer doesn't understand this section we handle in manually.

The object we get in the layout after import of the IDF is a route obstruct and we are changing it to solder mask area using automation using "PutFabricationLayerGfx " function.

I have difficulties finding that route obstruct object using the coordinates I have from the IDF file.

I need to find a way to select an object according to specific parameters: coordinates, type(RouteObstruct,Draw Object etc.) and layer.

I can loop on all route obstruct object on a specific layer and find that object (by compering all coordinates), but I'm trying to find a function that let me query for a specif object according to the above parameters.

I would appreciate any help in that matter.

Thanks

Ester

IsVariantMode - Variante? - SetVariantMode?

$
0
0

In Xpedition PCB ist es möglich per "Application.Document.IsVariantMode" abzufragen,

ob sich das Layout im entsprechenden Modus befindet.

 

Ich möchte wissen:

  1. von welcher Variante! Hat wer eine Idee?
  2. und/oder Ob man den Modus per Automation auch selber setzen/verlassen kann. Weiß das wer?

 

 

english Version:

It's possible in Xpedition-Pcb, to get the info if the layout is in the "VariantMode" by using: "Application.Document.IsVariantMode"

 

but how to:

  1. get the info from which variant is that view?
  2. and/or is it possible to get/set the VariantMode manually by Automation Scripting?

Layer information not correct

$
0
0

The old "Setup > Setup Parameters, Layer Stackup Tab" is gone in VX and replaced by the Stackup editor. However when I run a script to generate a Stackup drawing on a user layer it still gets old information from the old "Stackup Tab". How can I change the layer information marked in the attached picture? Im aware that Scripts are not officially supported, but where is this old information extracted from?

 

Stackup.jpg

toggle items in display control

$
0
0

One of my layout designers asked for a script where he could toggle certain things in the display control on and off like "Display Active Layer Only" using hot keys.  I know how to setup hot keys but I'm struggling to figure out how to toggle items on and off that live in the display control.  Anyone have any experience doing this that could help me out?  I see several items in "ActiveViewEX.DisplayControl" like "set_Option" but it crashes on me when I run it.

 

Something like

ExpDoc.ActiveViewEx.DisplayControl.set_Option("Display Active Layer Only", MGCPCB.EPcbGraphicsItemState.epcbGraphicsItemStateOnEnabled);

seems like it should enable the "Display Active Layer Only".

Automation DxDesigner change "Symbol Name"

$
0
0

Hi all

How can I read the Symbol Name on a component in DxDesigner with automation?

Then I wont to change the Partition Value. How can I do that?

 

Thanks for helps,

René

Script for RefDes renumbering

$
0
0

Hello all,

 

Goal: i need to renumber refdes in every schematic sheet separately with some predefined naming rules.

 

My knowledge is not deep in xDX automation, so can you give me some examples how could i reach sheet->part->properties(refdes,(x,y)position)


Price calculation / Invisible property

$
0
0

Hi There,

 

Is there a way to read property values from dxDatabook throw Script or is it possible to mark a Part property invisible for all export Export funktions. (edxd schem, PDF, ODB++,...)

Background is, I wouled like to write a script which calculates the value of all parts used in a Project.

We handle all our part price in dxdatabook but if i annotate the Property to the desigen it is visible with all other propertys in the exported files.

I need to prevent the possibility that some one exports a document where the customer is able to see our Part price.

 

Regard Christopher

Access symbol elements in script

$
0
0

Hello all,

 

I would like to export my central library to an another CAD program.

I have been able to extract the necessary cell informations and the cell's pad -> symbol pin assigments, but I have not found any code snipplet to access the symbol's elements (pins position, wires, etc.).

 

I would appericate any relevant code snipplet, documentation.

 

Thanks,

Miklos

Modifying Label object's Origin property (in Perl)

$
0
0

I am using Perl for a script that adds nets to components in xDX Designer.  The problem is that for those properties (of an object) that are of types both, read and write, cannot be modified or I am not doing it right.  Specifically, I need to change the label object's Origin property so that it's different from the default 0 to say, 9.  Here's what I am doing:

 

# add net label $net_label = $new_net->AddLabel($net_seg_one, $net_name, $net_label_x_loc, $pin_y_loc);  # modify origin $net_label->Origin(9);

 

Above $net_label is an object (I have verified this using print statement which says hash reference) and the line below that is supposed to change the origin of that label object (i.e. $net_label) to 9, which equates to lower-right.  But the origin does not change and there's no error produced either.  I have tried putting 9 in double quotes (i.e. requirement for a string in Perl or even used a variable in parenthesis for Origin but nothing yet).  Any idea how to change Origin?  Works fine in VBScript but not Perl. 

 

Thanks for your time.

can`t close DxDesigner /viewdraw at the end of script !

$
0
0

Hi,

 

I wanted to write a script which will exit the current runing designe. But if i run the  Quit method at the end of the scriptlines I geth this message:

 

 

 

any Idea ?

is this new in VX ?

 

my script snipped

 

Dim dxdapp, PrjData, PrjPath

set dxdapp = Application                                                          

dxdapp.CloseProject()              

dxdapp.Quit()                                            ' Close current xDxdesigner

Using VB script to export IDF and DXF formats from Expedition PCB

$
0
0

Hi all,

 

I am looking for a way to export IDF and DXF via VB script automation.

I found this thread here,

https://communities.mentor.com/message/38391#comment-38391

but I am not able to get how its done. Are there other ways existing since 2012?

 

I am on Expedition - VX1.

 

Does also someone have experience within Expedition PCB with

"pcbDoc.CCZExportControl" or "EDXExportControl" how do I

handle these Objects, what can I do with them???

 

Thanks in advance

Changing padstack in a PCB design

$
0
0

Hello,

Is it posible to change the padstack using automation?

how can I close DxDesigner /viewdraw at the end of script?

$
0
0

hello,

 

I'm working at a script who makes:

1. Findout all my variables

2. CloseProject

3. Give all variable to the PDM-System

4. PDM-System zip the project-container and put it in the PDM-filesystem

 

these steps are ok.

 

But how can I close the application viewdraw at the end of the script.

 

here is my script:

 

Option Explicit
  
  
    ' ----------------------------------------------------------------------------------
   
    Sub App_ProjectClosed
   
        Scripting.AddTypeLibrary("ViewDraw.Application")
        Dim vdapp,vddoc, mShell
        Set vdapp = GetObject (,"ViewDraw.Application")
        Set vddoc = vdapp.ActiveDocument
       
        CloseProject()
       
        Dim AktuelleZeit
        AktuelleZeit = Timer
        Do
            'System nicht blockieren
            'DoEvents
        Loop Until Timer - AktuelleZeit > 15
       
        'MsgBox "Project wird im OpenEDM gespeichert!"
             
        vdapp.StatusBarText("Das Project wurde OpenEDM gespeichert!")
        InsPDM
       
       
    End Sub
   
    ' ----------------------------------------------------------------------------------
 
   
    ' ----------------------------------------------------------------------------------   
    Sub CloseApplication
      
        Scripting.AddTypeLibrary("ViewDraw.Application")
        Dim vdapp,vddoc
        Set vdapp = GetObject (,"ViewDraw.Application")       
        vdapp.CloseApplication
    End Sub
    ' ----------------------------------------------------------------------------------
    ' HIER GEHT ES LOS !!!
    ' Project schliessen und an PDM geben
    ' ----------------------------------------------------------------------------------
    Schreibrecht

 

 

you can answer in german or english.

 

best regards

Norbert


How to get mouse position in DxD / xDx?

$
0
0

I am trying to write some automation that either attaches things to the mouse pointer, or drops them down at the current mouse location. Anyone know how to do either of these? I see some events related to the mouse moving, but not sure how to proceed. I have all the other automation relatively in place.

appPED = CreateObject("MGCPCBLibraries.PartsEditorDlg") in VX not work?

$
0
0

Hi Guys,

 

I are on rewriting all our scripting emperium to new VX release. With most of scripts I did not have a problem.

But with our library-Checker versus SAP I have.

In Expedition 7.9.4 Script is running well.

 

I write scripts in Visual Basic Express 2010.

 

What I have do:

I add a reference to ...SDD_HOME\common\win32\lib\PDBEditor.dll. With 7.9.4 it works perfect.

 

When I add a reference to VX1...PDBEditor.dll

appPED = CreateObject("MGCPCBLibraries.PartsEditorDlg") will do nothing.

 

How did you open your VX Partseditor ?

 

Any hints are welcome!

 

BR Michi

How to make a specific sheet in Drawing Editor active using VB .NET

$
0
0

Looks like there is no active document command in VB .NET for drawing editor application.

Could you please check and let us know if there is any alternate solution for this ASAP?

 

Appreciate any quick response on this.

File open script is greyed out

$
0
0

Hello to all

Until now I did not work with own scriptforms in DxD. I would like to play a bit with that but I have the problem that I'm not able to open existing scripts. I can create and save them, but not open it. ( See screenshot )

Do somebody have an idea what to do?

Thx. a lot

Add Special Component, reload List/Setup-Settings

$
0
0

Hello,

I want: add per script a special component. i did it with add the correct line to the file "speccomp.ini". But thats with no effect. at the earliest after restart the dxdesigner!

 

a: is there a way to reload the speccomp.ini during the session is active?

b: is there a better way by scripting, to add a special component during an active session?

 

best regards, Hinti

Viewing all 2158 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>