Knowledge Base

Knowledge Base
Subject: Swapping pointers more efficient
Status Resolved
Product WireCAD v9
Product Level PRO
Database Type SQL Azure
Build Number (last 4 digits of version) 18081
Upload No file!

Message

Customer
I do have a lot of drawings where it have been used different types of pointers. I wish to swap all this pointer to one specific type. Is there a way we could do this as a batch job, or a more efficient way than a plain manual way to do this?

In addition there is sometimes i would convert a wire to pointer. Not when i am drawing this, but when i change my mind and see there had been better to use pointers insted of normal wires. Is there a way i can do this insted of deleting the wire and add the pointers manually?

18-October-2018 (06:30 AM)
Hi Terje, I wrote a script to do this a while back. I have switched machines and can't find it.
When I get a free minute I will hunt it down or recreate it.

As to the replace cable with pointers function for an existing cable that is a great idea that I will have to defer for right now.
21-October-2018 (09:57 AM)
Support
Customer
It would be so great if you found the script, or where able to recreate it. It would save me so much work tidying a lot of drawings. And i really hope you find time in the near future to look for it or recreate it.

And remember backup of this before you change computer or have a disk crash in the future ;-)
23-October-2018 (09:34 AM)
I am working on it right now.
Do you need to replace Pointer_S or Pointer_D?
If so the script gets much more complicated.
23-October-2018 (10:33 AM)
Support
Customer
I'm sorry to say it is both Pointer_S and Pointer_D in the drawings. As well as VBH_Pointers and variants of Feather. And it is mixed in some of the drawings.
If it is easyer, you can make several variants of the script so i can run one script for each type if it makes it easier for you?


24-October-2018 (01:59 AM)
OK here we go.
Unzip the file and place the two files in c:\users\public\public documents\WireCAD\WireCAD9\Scripts.
There are two scripts.
PointerSwapper.cs - replaces pointer sets.
TerminalSwapper.cs - replaces terminals.
Both require that you edit some variables in the script to tell the script which things to replace and with what.
Both scripts are well commented and should be reasonably understandable.
To run a script:
1. Open WireCAD, your project, and the drawing that you want to work in.
2. Open Plugins>Script Editor/Runner
3. Click File>Open and browse to and open the script.
4. Make any necessary edits to the script and save.
5. Click the run button [>] on the tool bar to execute the script.

Let me know how it goes. I am going to close this ticket but it you need more help just reply to reopen it.
24-October-2018 (02:56 PM)
Support
Customer
Looks like this is working great. At least in my test project. Will move it over to "production" now.

I have to ask. I know you have to postpone the work with swapping cables to pointers suggestion. At least for now. And i am looking forward to this functionality at a later release.
BUT i have a lot of drawings where i need to swap all wires to pointers, and i wonder if it is possible to modify one of the scripts you already did, and make a script that swaps cables for pointers? It would really help me out a lot.
25-October-2018 (05:01 AM)
I am glad the other scripts are working for you.
We would have to charge something for the script. If that is of interest please email sales@wirecad.com and we will get a quote out to you.
Thanks,
Chris
25-October-2018 (12:42 PM)
Support