Jump to content
Sign in to follow this  
Jonathan Pickup

Hide Selected Class

Recommended Posts

Here is a script that will hide the class of an object you click on. The script finds the object, finds out what class the object in on and then turns that class invisible.

I would post a the file of the plug-in, but the file manager won't let me, so you'll have to make your own tool and icon for this.

Script---------------------------------

Procedure HideClassSelected;

{written by Jonathan Pickup 2000, Edited 2007}

VAR

h2obj, h2obj2 : HANDLE;

ClassName : STRING;

x,y : REAL;

Continue : BOOLEAN;

BEGIN

DSelectAll;

Getpt(X,y);

H2Obj := PickObject(x,y);

IF h2obj<>NIL THEN

BEGIN

ClassName := GetClass(h2obj);

IF GETTYPE(h2obj)=11 THEN

BEGIN

SetSelect(h2obj);

DoMenuTextByName('Group Navigation Chunk',1);

h2obj2:=PickObject(x,y);

ClassName := GetClass(h2obj2);

IF ClassName='None' THEN SYSBEEP

ELSE HideClass(className);

DoMenuTextByName('Group Navigation Chunk',2);

END

ELSE IF ClassName='None' THEN SYSBEEP

ELSE HideClass(className);

END

ELSE sysbeep;

ReDrawAll;

END;

Run(HideClassSelected);

-----------------------------------

Edited by archoncad

Share this post


Link to post
Guest

Jonathan,

Can you try to attach a file now? It should be fixed. (edit this post and see if File Manager is there)

Share this post


Link to post

Come on Petri, let's see your wares!

Thanks Jonathan, only a technicality...I just like to know where I stand..

Share this post


Link to post
Guest

The copywrited statement is for people who want to post stolen material. This will not be permitted.

If you want to post your own information, with a copywrite symbol, that is perfectly fine.

Share this post


Link to post

If you want to post your own information, with a copywrite symbol, that is perfectly fine.

What does Copyright mean in practice in this situation then? What licence do you grant us to use this material, other than to admire it? Pat Stanford has included a GNU licence in his copyright text over on the General Discussion forum - which looks sensible. I suggest you make this a general condition for posting scripts.

Share this post


Link to post
Guest

People add copyright symbols to their scripts, for example. If that person wants to share their script with someone else, they are within the confines to do such. What is not allowed, is for people to post scripts (or other material) which they do not have permission to distribute.

Whatever the creator wants to do inside the script, by way of protection, specific text, licensing, etc is up to them. This is not something NNA will, or should monitor. NNA's role is to provide a community for everyone to share information they are willing to share.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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.

×