Jump to content
Sign in to follow this  
team

Color by class

Recommended Posts

Hello,

my problem today is: selecting object in VS with the Attribute:

"Color by class". I tried it in different ways, but can't get it.

Example: EditProperties((FB='by class'));

like: EditProperties((FB=260))

What can I do?

Thanks

m

Share this post


Link to post

There is no such direct attribute but you can do the same with this script:

PROCEDURE SelObjbyColor;

{DEBUG}

PROCEDURE SelObjbyFill(objHdl: HANDLE);

BEGIN

IF IsFillColorByClass(objHdl) THEN

SetSelect(objHdl);

END;

BEGIN

DSelectAll;

ForEachObject(SelObjbyFill,((ALL)));

END;

Run(SelObjbyColor);

I specified all objects but this can be modified to narrow the search.

Share this post


Link to post

sorry Miguel, but this is not the same.

this is a heavy limit for Custom Modification (to the non-scripter).

criteria calls could have this no problem.

please also add opacity to the wish list :)

orso

Share this post


Link to post

I specifically said it is not the same! He can use the script to do what the objective is while he waits for his wish to be added if that ever becomes a reality.

Isn't it what scripting is about anyways? To do what you want regardless of the method used. In the 15 years or so that scripting was added to MiniCad/Vectorworks, I have encountered so many roadblocks because a function was either broken or not available. I simply experimented with different options to accomplish what I wanted.

In the mid 90's, I had a wish to estimate how much material would it take to build a house. Since there was no way to calculate the framing of the house, I set my goal to model it so then I can calculate the material. If I had waited for this to be added, you would probably not have wallframer today.

The same goes nowadays, there are road plugins provided but not the means to do a set of construction drawings. Should I wish list it and hope the tools will be added someday or just do my own? So far, I have developed most tools I need to do my job more efficiently and faster without having to wait for something that may never be available.

Share this post


Link to post

Just to confirm (since Miguel has only hinted to the fact), Miguel did write the very first Wall Framer and then passed it on to NNA.

If you like it, I am sure Miguel would appreciate a kind word of thanks. If you don't like it, them complain to NNA about why they have not improved it to meet your needs. ;-)

Pat

Share this post


Link to post

Orso,

I actaully was not paying that much attention to the thread, so no, it was not directed to you. I just wanted to get a record in the forum that Miguel wrote the original Wall Framer and I think he deserves some credit for that.

And just for the record, you deserver credit for all of your work also. The BBEdit/TextWrangler plug-ins are great and I sue them quite often.

Pat

Share this post


Link to post

The fact is that actually Miguel is right: here we are in the VS forum, so his answer is right and generous.

The lack of byclass flags has always been annoying for the lazy scripter [me], whereby not always criteria would be the best approach, so -also without it- not such a big loss.

But now, with the Custom Modification it is simply unfair that the byClass flag doesn't exist: only scripting is the workaround.

I -really lazy lazy scripter- believe that it should be available.

orso

Share this post


Link to post

WOW,

back after a few days and I found this discussion!

First: Thanks to all for help, gracias und Dankesch?n.

I think this is a Vectorworks/Nemetschek-Problem that there are

"great" new functions that are not really elaborated like the custom modification and the new transparency....

(of course its not only Vectorworks) and we need people like Miguel to help them (and us)

And Orso, i will "wish-list" it....

Bye,

Mika

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