EPLAN hat ja die Handhabung mit benutzerdefinierten Eigenschaften geändert.
Diese können nun über Optionen > Eigenschaften konfigurieren… geändert werden.
Leider hat EPLAN nicht gesagt wie man diese Eigenschaften dann auch Schreiben kann.
In der Action XEsSetProjectPropertyAction ist nur dokumentiert wie man die ID-bezogenen Eigenschaften setzt.
Es gibt, wie so oft, einen nicht dokumentierten Parameter namens PropertyIdentName mit dem man die Eigenschaften ansprechen kann.
Beispiel:
- Projekt
- Seite
- Funktion
- Artikelreferenz
XEsSetProjectPropertyAction /PropertyIdentName:"EPLAN.Project.UserSupplementaryField1" /PropertyIndex:0 /PropertyValue:"My project property" XEsSetPagePropertyAction /PropertyIdentName:"EPLAN.Page.UserSupplementaryField1" /PropertyIndex:0 /PropertyValue:"My page property" XEsSetPropertyAction /PropertyIdentName:"EPLAN.Function.UserSupplementaryField1" /PropertyIndex:0 /PropertyValue:"My function property" XEsSetPropertyAction /PropertyIdentName:"EPLAN.ArticleRef.EPLAN.PartRef.UserSupplementaryField1" /PropertyIndex:1 /PropertyValue:"My articlereference property"
Hi Jonny,
I’m using 2.4 and cannot make this to work.
I’ve tried:
CommandLineInterpreter oCLI = new CommandLineInterpreter();
ActionCallingContext acc = new ActionCallingContext();
acc.AddParameter(“PropertyIdentName”, “EPLAN.Project.UserSupplementaryField51”);
acc.AddParameter(“PropertyIndex”, “0”);
acc.AddParameter(“PropertyValue”, “My project property”);
oCLI.Execute(“XEsSetProjectPropertyAction”, acc);
But no change on the Field (which I assume is the “Displayed Name” text box?).
There are any need to change the other test boxes (Input aid/Category)?
What do you think?
I tested it, and for me it works…
Hi Johann,
I’m still in 2.4 HF2 and cannot move to 2.5 yet.
Do you think this might be the reason?
Have you tried this action in 2.4 (e.g. HF4)? Did it work then?
Regards,
Works also in 2.4 HF2.
Are you sure that you change a project property?
Try the script… i think your property is the wrong one.
Hi Johann,
Your script doesn’t work also :-C
I’m already in 2.4 HF4 and cannot seem to be able to make it work. I’m using 32Bit not 64Bit. What about you?
Also EPLAN Help is contradictory:
They mention “PropertyId” instead of “PropertyIdentName” (as per your script) and that PropertyId = Idntifier of the property to be defined (= Property number)?
The idea is to change the alias name, what you see in EPLAN dialogs, labels and filters e.g. instead seeing “EPLAN.Project.UserSupplementaryField nn” we could just see “MyPropName”.
This is no different to what we had in 2.3.
I don’t know what to do anymore…
The action in EPLAN help is the old way, without the new (>2.4) naming of user definied properties.
You can not change the name per script, only in the UI. With the script is it only possible to set values. For the names, go to Utilities > user properties (i have no english UI sorry).
Hi Johann
another question to XEsSetProjectPropertyAction:
I want
to copy from Project.USF10 to another Project.USF60
delete Project.USF10
is that possible? I tried to copy but I have no idea!
Thanks for support!
Gernot
Directly is it only possible by API.
With Scripting you can export the property and read from file and set it to new one.
Deleting is only possible by API.
Thanks for Information! Maybe later I will come back for help!
ActionCallingContext accArt = new ActionCallingContext();
accArt.AddParameter(“PropertyIdentName”, “SUK.Stock.Article”);
accArt.AddParameter(“PropertyIndex”, “0”);
accArt.AddParameter(“PropertyValue”, “true”);
CommandLineInterpreter cliArt = new CommandLineInterpreter();
cliArt.Execute(“XEsSetPropertyAction”, accArt);
leider setzt er kein wert ? was habe ich hier falsch gemacht?
Ist es eine Eigenschaft in den Artikeldaten oder im Projekt ein Artikelreferenzdatenfeld?
Wenn der Datentyp bool ist könntest Du mal “1” probieren.
ist es im Projekt ein Artikelreferenzdatenfeld und mit 1 hat es auch nicht funktioniert leider…
Eine Projekteigenschaft kann nicht vom Typ “Artikelreferenzdatenfeld” sein.
Wie willst Du das Feld nutzen bzw. wo genau?
Hello, is there a way to edit each EPLAN.Page.UserSupplementaryField on every page independently without the “edit” void
Thanks
I exported a .txt file of the whole mounting location wich contains EPLAN.Page.UserSupplementaryField***” of every page but im interested to change only a few. and when i perform this action it changes all the pages.. i tried to filter them by creating lists and exeptions but no luck
CommandLineInterpreter oCLI = new CommandLineInterpreter();
ActionCallingContext acc = new ActionCallingContext();
acc.AddParameter(“PropertyIdentName”, “EPLAN.Page.UserSupplementaryField***”);
acc.AddParameter(“PropertyIndex”, “0”);
acc.AddParameter(“PropertyValue”, “***”);
oCLI.Execute(“XEsSetPagePropertyAction”, acc);
Have can do this via script.