Jump to content
Sign in to follow this  
Guest

set functions don't seem to work with handles in structures

Recommended Posts

Guest

Say i Have:

type

line = structure

p1,p2 : real;

h : handle;

end;

var p_array: array[1..20] of line;

temp : handle;

i : integer;

dselectall;

selectobj(PF=perimeter);

temp := fsactlayer;

i := 1;

while( temp <> nil) do

begin

p_array.h := temp; getsegpt1(temp,p_array.p1.x,p_array.p1.y);

getsegpt2(temp,p_array.p2.x,p_array.p2.y);

setpenfore(p_array.h,0,0,65333);

i := i + 1;

end;

I will get a compile error saying that the operands are not of compatible types, meaning that p_array.h is not a handle.

What's up with that?

Share this post


Link to post
Guest

That was just a typo.

My problem isn't the point stuff. That works fine it's the fact that vectorscript won't compile when i try to pass p_array.h into a set function as a handle.

Share this post


Link to post

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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...