Search found 17 matches

by ikua
Tue May 07, 2024 10:05 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Drop down list for Cusom Properties
Replies: 4
Views: 974

Re: Drop down list for Cusom Properties

Thank you very much for your big help and effort!!! I feel sorry to say, that it seems to me, that this level of programming is out of my scope. Maybe it can help someone else to really takle the problem.
greets Ikua
by ikua
Mon May 06, 2024 2:02 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Drop down list for Cusom Properties
Replies: 4
Views: 974

Drop down list for Cusom Properties

Hello! I know how to add custom properties with e.g. entity.setCustomProperty("QCAD","Prefix","") to an entity. I would like now to limit the input to a list selection and cread a drop down list e.g. "left", "right", "bottom", "top". I found in the api list the following command but it did not find ...
by ikua
Wed Apr 24, 2024 11:33 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Updating Block attributes
Replies: 6
Views: 715

Re: Updating Block attributes

Hey! me again! I ran in somehow the same issue with dimensions. They change their properties but do not update directly after the script. var appWin = EAction.getMainWindow(); var di = this.getDocumentInterface(); var doc = this.getDocument(); var op = new RModifyObjectsOperation(); appWin.handleUse...
by ikua
Mon Apr 22, 2024 1:15 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Updating Block attributes
Replies: 6
Views: 715

[Solved] Updating Block attributes

Hello CVH!

Everything works like charm now. Thanks. I will try to find out more about the listener later on.!!

Thanks a lot!!!
by ikua
Mon Apr 22, 2024 11:42 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Updating Block attributes
Replies: 6
Views: 715

Re: Updating Block attributes

Additional Question: Is there maybe a possibility to run a script everytime, when a blockreference is moved to update it after it has changed its place?

That would be a dream come true :-D
by ikua
Mon Apr 22, 2024 11:35 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Updating Block attributes
Replies: 6
Views: 715

Updating Block attributes

Hello! I try to update block attributes based on there location. But if i run the script i have to select the attribute, so that i also shows the right number. If I do not click anything, the old number stays there. I tried to combine the operaton with colorchanges of other objects. that works but t...
by ikua
Mon Apr 15, 2024 9:31 am
Forum: QCAD 'How Do I' Questions
Topic: Change default values of Dimension (which are not in the Preferences)
Replies: 3
Views: 633

Re: Change default values of Dimension (which are not in the Preferences)

thanks for your answer. i cant find the flipped arrow in prefernece drawing. only the size of the arrow. maybe cause of the old version (3.25) for orthogonal dimensions the Fixed Extension Line and length) changes the length of the line between dimesion an measured object (first lenght 0,25 ; second...
by ikua
Mon Apr 15, 2024 8:11 am
Forum: QCAD 'How Do I' Questions
Topic: Change default values of Dimension (which are not in the Preferences)
Replies: 3
Views: 633

Change default values of Dimension (which are not in the Preferences)

Hello! I would like to change the default values Flip Arrow Values, Fixed Extension Line, and Extension Line Length. The should have for every NEW dimension the following values. I now how to change the afterwards (Selection Filter -> Text -> Replace Current Selection -> Change values), but it would...
by ikua
Wed Feb 21, 2024 9:07 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Duplicate layer with all sublayer with the right color
Replies: 5
Views: 1298

Re: Duplicate layer with all sublayer with the right color

Hello CVH! Thanks for the many points to improve the script (and sorry for late reply, a lot to do the last days). For time reasons i will leave it here, as its is. Like i mentioned i am really low level programmer and for me, the aim is, that it works for me, and not for genereal cases. Nevertheles...
by ikua
Fri Feb 09, 2024 10:11 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Duplicate layer with all sublayer with the right color
Replies: 5
Views: 1298

Re: Duplicate layer with all sublayer with the right color

Thank for the hint with the missing i in the first line and the review. The rest is also a mistery how it works, but it works, but it seems, that the ".name()" converts the RColor to hex, and that can be used to set the color of the new layer. So it also works with custom colors, because it actually...
by ikua
Thu Feb 08, 2024 10:19 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Duplicate layer with all sublayer with the right color
Replies: 5
Views: 1298

Duplicate layer with all sublayer with the right color

Hello! The scirpts copies all sublayers from "oldlayer_name" to a new created "newlayer_name". If somebody needs that some day: include("scripts/simple.js"); //für addsimpletext // get main application window: var appWin = EAction.getMainWindow(); // appWin.handleUserMessage("Neubau mit Farbe hinter...
by ikua
Wed Feb 07, 2024 8:53 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Clone different objects to new Layer
Replies: 4
Views: 1118

Re: Clone different objects to new Layer

How the hack!!! Thanks @Andrew. Maybe i was in a code blurry. Tried out so many things, nothings seemed to work. Thanks for the hint. @CVH: The wohle reason is, i am developing tools to create PID schemes in a comfortable way. We are working often with existing structures and implement new parts. So...
by ikua
Tue Feb 06, 2024 6:26 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Clone different objects to new Layer
Replies: 4
Views: 1118

Clone different objects to new Layer

Hello! I want to highlight some object on a layer, with another layer pushed in the background. I try now to make a clone form all entities and move them to layer one. Unfourtunatly this only works for polylines until now. I am not able to use "castToShap" for RTextEntities or block. Maybe someone h...
by ikua
Fri Jan 26, 2024 1:26 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [Solved] Send text to clipboard for external use
Replies: 2
Views: 1117

Re: Send text to clipboard for external use

works like charm!! thanks for fast reply.
by ikua
Fri Jan 26, 2024 10:18 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: [Solved] Send text to clipboard for external use
Replies: 2
Views: 1117

[Solved] Send text to clipboard for external use

Hello! I am trying to find a methode to send text from qcad script into the clipboard to paste it into an other app (excel). I could find not solution not with RInterface::clipobard also not with clipboardoperation. My last try was the following which did not work out. Any suggestions? var appWin = ...

Go to advanced search