Jump to content
Developer Wiki and Function Reference Links ×

Script fail


Recommended Posts

I'm trying to write a simple script that will find every extrude - including extrudes inside of symbols - and change their depth to 12'.

I got it to run using FSActLayer on a test of extrudes outside of symbols. But I can't get it to run using ForEachObject

What am I missing?

Thanks

mk

Procedure Test;

VAR

H1 : HANDLE;

hh,ww,dd : REAL;

Procedure ExtrudeToTwelve(H1 : HANDLE);

Begin

Get3DInfo(H1,hh,ww,dd);

Set3DInfo(H1,hh,ww,144);

END;

Begin

ForEachObject(ExtrudeToTwelve,(INSYMBOL & (T=XTRD));

End;

Run(Test);

Link to comment

Michael,

???You are missing a parenthesis of the right handed variety; or, you have included an extra parenthesis of the left handed variety. I prefer to favor the latter explanation as I usually prefer more concise expressions, but making either adjustment will improve your code's execution.

Raymond

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