Jump to content
Developer Wiki and Function Reference Links ×

Half a dozen questions...


DaveF

Recommended Posts

Hi

Vectorworks v8.5.2 & v9.5.2, Windows XP

I've been pulling my hair out during the Easter break over a number of problems.

I hope you can help with a couple of them:

1. I've written a routine that calls the leader line tool.

Is there a way to set it so defaults to the unconstrained leader mode?

2. How do I edit the Icons when creating a tool plug-in.

I want to copy the leader line icon & edit it slightly for a new tool.

the plug-in editor says 'paste a 32x32 pict' but I've no idea how - there's

no right click & paste option.

3. At Vectordepot->Plug-ins, http://www.vectordepot.com/PlugIns1.shtml

there's a routine called Layer & Class Options Palette by David Kenney.

It says it's written for v9.0 but I'm unable to open it in v9.5.2.(Unrecognised File)

Could someone kindly save it into an earlier version & e-mail it to me.

4.I've a routine that creates a new class. How do I set the fill for this class to None?

I've tried using the SetClFillBack but I don't know what the number is for 'None'.

I thought GetClFillBack would give me the answer, but there appears to be a

bug in that it doesn't return the current value.

5. v9.5.2 - in vectorscript editor there appears to no right click & paste - is this correct?

6. I want to write a routine that will make invisible all the classes except those of the

entities the user will select. I can select the entities a find their classes,

but I've no idea how to find all the classes in the document & cycle through them to

see if they correspond with one of the selected entities.

Any help would be greatly appreciated.

I hope I've explained myself clearly enough.

Link to comment

couple of possible answers.

2. as far as i can tell you can't cut and paste an existing icon, but you can take a screen shot and trim out of that the icon in a graphics programme. then in the graphics programme increase the canvus size to 32 x32. save file as pict. or select all and copy to clipboard. then you can just select the icon box in your tool and paste.

one hint thought. when designing the icon use a 24x18 pixel canvus then resize it to 32x32 keeping the orginal in middle and adding pixels on each edge.

3. i get the same message with that file.

4. you have to set the fill pattern to get the none fill. should be fill pattern 0.

hope this is some help

Link to comment

hello,

use Option C and Option V(Ctrl C and Ctrl V in windows) for cutting and pasting in both the editor and for icons. I use the Iconographer(shareware) for the mac and can cut and paste into the plug-ins properties with ease! For Windows the Iconeditor is good.

here is a procedure which will gather all the classes and store them in an array. this should give you the gist of cycling through classes.

PROCEDURE KLIST;

VAR

klass:DYNARRAY [] OF STRING;

i,count:LONGINT;

BEGIN

i:=ClassNum;

ALLOCATE Klass[1..i];

For count:=1 to i DO

Klass[count]:=ClassList(count);

END;

RUN(KLIST);

hope this is helpful.

-jason

Link to comment

1. I've written a routine that calls the leader line tool.

Is there a way to set it so defaults to the unconstrained leader mode?

I'm afraid this is beyond VS

3. At Vectordepot->Plug-ins, http://www.vectordepot.com/PlugIns1.shtml

there's a routine called Layer & Class Options Palette by David Kenney.

It was saved as a VW10 file

I'll write to VectorDepot and I'll send you a copy

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...