Jump to content
  • 0

Worksheet databases: VectorScript functions needed


Petri

Question

It would be nice to be able to use VectorScript functions in worksheet databases and be able to generate reports on definitions, not only drawing objects.

Today I would have liked to get a list of gradient definitions and their names; I'm sure CAD-managers and even some designers would like to list available gradients, hatches and symbols and resident PIOs. Yes, it can be done with VectorScripts, but this involves programming and is by and large inelegant and clumsy.

So, I'd like to create a database like

=DATABASE(T=Gradient)

with formula

=DEFNAME.

For object listings, with a formula like

=INDEX2NAME(-FP)

we could list the hatches or gradients used. I'd have many uses for this!

Link to comment

2 answers to this question

Recommended Posts

  • 0

Export>Vectorscript> v11.5:

{Gradient Definition Entries}

gradientName := 'Gradient-1';

gradientHandle:= CreateGradient (gradientName);

gradientName1 := GetName(gradientHandle);

segmentIndex := 1;

SetGradientData (gradientHandle,segmentIndex,0,0.5,255,255,255);

segmentIndex := 2;

SetGradientData (gradientHandle,segmentIndex,1,1,0,0,0);

{End of GradientDefinition Entries}

{Hatch Definition Entries}

hatchName1:= 'Default Hatch';

BeginVectorFillN(hatchName1,TRUE,FALSE,0);

AddVectorFillLayer(0,0,1,1,0.176776695,-0.176776695,1,1,255);

EndVectorFill;

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
Answer this question...

×   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...