Hot News:

Mit Unterstützung durch:

  Foren auf CAD.de (alle Foren)
  EPLAN Electric P8
  Labeling script doesn´t show Parts from Layout space

Antwort erstellen  Neues Thema erstellen
CAD.de Login | Logout | Profil | Profil bearbeiten | Registrieren | Voreinstellungen | Hilfe | Suchen

Anzeige:

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen nächster neuer Beitrag | nächster älterer Beitrag
  
Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für EPLAN
Autor Thema:  Labeling script doesn´t show Parts from Layout space (538 mal gelesen)
ad94
Mitglied
Engineer

Sehen Sie sich das Profil von ad94 an!   Senden Sie eine Private Message an ad94  Schreiben Sie einen Gästebucheintrag für ad94

Beiträge: 4
Registriert: 20.01.2022

script

erstellt am: 20. Jan. 2022 12:25    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

Hello forum!

It is my first time writing here but not the first time I have solved problems reading the forums. first of all sorrry for writng in English but I am from Spain and my German is not so good.

My doubt is about scripts and labeling. I am using a script to get the labeling with EECone. Some mechanical parts are only in the layout space and when I run the script it only shows the parts in schematics and the mechanical parts are not shown.

Code:

            progress.BeginPart(nActionsPercent/7, "Device tag list Manufacturing data");
            ActionCallingContext context7 = new ActionCallingContext();
            context7.AddParameter("configscheme", "Part list");
            context7.AddParameter("destinationfile", @"$(DOC)\$(PROJECTNAME)_Device_tag_list.xlsx");
            context7.AddParameter("showoutput", "1");
            context7.AddParameter("ProjectName", @"C\mypc.....");
            context7.AddParameter("LANGUAGE ", "en_US");
            context7.AddParameter("USESELECTION ", "0");
            CommandLineInterpreter().Execute("label", context7);

I know that Useselection to 1 it works if you select the project. However, EEC doesn't allow to select the project. Any other idea? For example any unregistered property?

------------------
Adrian

[Diese Nachricht wurde von ad94 am 20. Jan. 2022 editiert.]

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

P8er
Mitglied
E-Konstrukteur


Sehen Sie sich das Profil von P8er an!   Senden Sie eine Private Message an P8er  Schreiben Sie einen Gästebucheintrag für P8er

Beiträge: 286
Registriert: 10.08.2020

Windows 10 Pro 64 Bit
E-2236 CPU @ 3.41 GHz
NVIDIA RTX A4000
Eplan P8 2.9, ProPanel
Eplan 2022, Eplan 2023

erstellt am: 21. Jan. 2022 13:21    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für ad94 10 Unities + Antwort hilfreich

Hey,

maybe your settings are wrong?
What are the settings of your "Part list" configscheme?

I think you must have a scheme for it because in yor script you say that your config scheme should be "Part list"

If no filter or something else is in your scheme, you should have a look at your settings in the layout. The easyest way is to make a right click on your layout page and "edit tabular". Then you can add a column with "Suppress in parts list when filtered". Now you can see all the hooks.
If your Scheme filter set to "Suppress in parts list when filtered" you can delete the hooks or you can deactivate the filter.

Then all the parts should be visible in your List.

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

ad94
Mitglied
Engineer

Sehen Sie sich das Profil von ad94 an!   Senden Sie eine Private Message an ad94  Schreiben Sie einen Gästebucheintrag für ad94

Beiträge: 4
Registriert: 20.01.2022

script

erstellt am: 21. Jan. 2022 14:10    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

Hey P8er!

First of all thaaaanks for the quick response.

There is not filter setting in the configscheme and all the parts in the layout are not surpressed in the part list... I think it has to be related to the action label. If I use USESELECTION=1 and I run the code selecting the project it works fine! But with USESElELECTION=0 it only shows the parts in schematics.

I also have found that if I delete all the schematics it shows the parts in the layout space but if there is at least one schematic page it acts diferently....

Maybe it is something internal and there is not solution for that.

------------------
Adrian

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

P8er
Mitglied
E-Konstrukteur


Sehen Sie sich das Profil von P8er an!   Senden Sie eine Private Message an P8er  Schreiben Sie einen Gästebucheintrag für P8er

Beiträge: 286
Registriert: 10.08.2020

Windows 10 Pro 64 Bit
E-2236 CPU @ 3.41 GHz
NVIDIA RTX A4000
Eplan P8 2.9, ProPanel
Eplan 2022, Eplan 2023

erstellt am: 21. Jan. 2022 14:24    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für ad94 10 Unities + Antwort hilfreich

Do you use the page filter? There is a parameter PAGEFILTERNAME, for this you set USESELECTION to 0 and write your page filter e.g. "1600A distribution" in PAGEFILTERNAME.

In your script:

Code:
context1.AddParameter("pagefiltername", "1600A distribution");

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

ad94
Mitglied
Engineer

Sehen Sie sich das Profil von ad94 an!   Senden Sie eine Private Message an ad94  Schreiben Sie einen Gästebucheintrag für ad94

Beiträge: 4
Registriert: 20.01.2022

script

erstellt am: 25. Jan. 2022 10:40    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

I don´t have any filter page neither... I think it is an Eplan error because I am not able to make it run with the project closed and USESELECTION=0

------------------
Adrian

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

nairolf
Ehrenmitglied
Elektroingenieur


Sehen Sie sich das Profil von nairolf an!   Senden Sie eine Private Message an nairolf  Schreiben Sie einen Gästebucheintrag für nairolf

Beiträge: 1987
Registriert: 21.01.2006

EPLAN Electric P8 2022.0.3 Update 2 (Build 17673)
EPLAN Pro Panel Professional Addon
EPLAN Fluid Addon

erstellt am: 25. Jan. 2022 15:50    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für ad94 10 Unities + Antwort hilfreich

What type of report are you using ?
The progressbar is called "Device tag list", but the schemename is "Parts list".

If it's parts list: does the mechanical part conatin a part no. ?
If not, is the checkbox "Devices without part number" inside the scheme in column "Include parts" activated ?

I'm not sure if you'Ve just posted an example, or the real code, but:

context7.AddParameter("ProjectName", @"C\mypc.....");
...does not seem to be a correct project name, because value should ba a valid drive letter (or UNC path) @"C:\mypc..."

context7.AddParameter("LANGUAGE ", "en_US");
context7.AddParameter("USESELECTION ", "0");
...both parameters contain an unnecessary blank after the parameter name

BR
nairolf

------------------
Der Fuchs ist schlau und stellt sich dumm.
Bei vielen ist es andersrum 
------------------------------------------
Da lernt man mühevoll laufen und sprechen,
und nun soll ich stillsitzen und die Klappe halten !

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

ad94
Mitglied
Engineer

Sehen Sie sich das Profil von ad94 an!   Senden Sie eine Private Message an ad94  Schreiben Sie einen Gästebucheintrag für ad94

Beiträge: 4
Registriert: 20.01.2022

script

erstellt am: 25. Jan. 2022 16:24    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

I am using a Part list, the "Device Tag list" tittle is because it is just a test and I am reusing code.

Mechanical parts contain part number. When I get the report with (Utilities -> Manufacturing data) it works correctly, I get the information from the layout and schematics. However, using the script or the Automated procesing the layout information is not taking into account.

The code is almost the one I tested, I only modified the folder's route because it contain personal infomation.

About the paramenters I have solved the problem with the blanks but they result are exactly the same.

Thank you anyway for the help!

------------------
Adrian

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

Anzeige.:

Anzeige: (Infos zum Werbeplatz >>)

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen

nächster neuerer Beitrag | nächster älterer Beitrag
Antwort erstellen


Diesen Beitrag mit Lesezeichen versehen ... | Nach anderen Beiträgen suchen | CAD.de-Newsletter

Administrative Optionen: Beitrag schliessen | Archivieren/Bewegen | Beitrag melden!

Fragen und Anregungen: Kritik-Forum | Neues aus der Community: Community-Forum

(c)2023 CAD.de | Impressum | Datenschutz