| |
 | Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für EPLAN |
| |
 | Branchendialog: Gebäudetechnik am 14. März 2024 in Köln, eine Pressemitteilung
|
Autor
|
Thema: Labeling script doesn´t show Parts from Layout space (772 / mal gelesen)
|
ad94 Mitglied Engineer
 Beiträge: 4 Registriert: 20.01.2022 script
|
erstellt am: 20. Jan. 2022 12:25 <-- editieren / zitieren --> Unities abgeben:         
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
 
 Beiträge: 288 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 / zitieren --> Unities abgeben:          Nur für ad94
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
 Beiträge: 4 Registriert: 20.01.2022 script
|
erstellt am: 21. Jan. 2022 14:10 <-- editieren / zitieren --> Unities abgeben:         
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
 
 Beiträge: 288 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 / zitieren --> Unities abgeben:          Nur für ad94
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
 Beiträge: 4 Registriert: 20.01.2022 script
|
erstellt am: 25. Jan. 2022 10:40 <-- editieren / zitieren --> Unities abgeben:         
|
nairolf Ehrenmitglied Elektroingenieur
    
 Beiträge: 1998 Registriert: 21.01.2006 EPLAN Electric P8 2024.0.3 Update 1 (Build 21460) EPLAN Pro Panel Professional Addon EPLAN Fluid Addon
|
erstellt am: 25. Jan. 2022 15:50 <-- editieren / zitieren --> Unities abgeben:          Nur für ad94
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
 Beiträge: 4 Registriert: 20.01.2022 script
|
erstellt am: 25. Jan. 2022 16:24 <-- editieren / zitieren --> Unities abgeben:         
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 |