Jump to content
Developer Wiki and Function Reference Links ×

Objs by Crit -> VSEL not working in Menu Command


Recommended Posts

Hi all,

 

I have created a Marionette menu command which, from selected floor plan symbols in the plan, is supposed to place view symbols at an X distance defined via dialog. The problem is that using Objs by Crit with VSEL=TRUE does not output any objects. However, if I use SEL=TRUE, objects are outputted, but far too many, since selected objects that are not visible (e.g., selected objects in groups and symbols) are also captured. What am I doing wrong or what have I overlooked? Attached is the document with VSEL and SEL:

SelectedSymbol.vwx

Regards KroVex

 

Link to comment

I don't think you can use the SEL or VSEL criteria and also use a Marionette object in the drawing.  In order to run the Marionette, you have to select it.  This means that you will not have anything else selected on the active Layer.

 

SEL and VSEL could be used if you wanted to make a Marionette Menu Command, but as a tool they won't work.

Link to comment
25 minutes ago, Pat Stanford said:

I don't think you can use the SEL or VSEL criteria and also use a Marionette object in the drawing.  In order to run the Marionette, you have to select it.  This means that you will not have anything else selected on the active Layer.

 

SEL and VSEL could be used if you wanted to make a Marionette Menu Command, but as a tool they won't work.

 

Thank you for your reply, but the Marionette script is intended as a menu command, not as a Marionette object. Simply put, the menu command retrieves the symbol names and positions of the activated objects and places new symbols on the plan accordingly. Sorry if this was not clear.

Regards KroVex

Link to comment
53 minutes ago, Antonio Landsberger said:

KroVex,

this behaviour is WAD. Unfortunately there is no criterion "active layer".
So, if you want to filter for certain layers (active layer for example), you have to use the equal and filter nodes to only get the items from that layer.

Hello Antonio, just to make sure I understand you correctly, the following procedure is not possible: Manually activate three symbols in the plan -> Execute menu command -> receive the symbol names of the currently activated symbols?
 

Even if I additionally filter the objects by the active layer, the problem remains with SEL=TRUE that too many objects are outputted, for example, if anything was once selected in another group on this layer...

Link to comment

There appears to be a problem with the VSEL criteria.

 

In a worksheet the VSEL returns as TRUE for a selected object.

 

Inside the Marionette it does not seem to return any items.

 

Could you expand your criteria to be SEL & Type is Symbol and get it to do what you want?

 

@Marissa Farrell Can you comment on using VSEL criteria inside a Marionette Menu Command?

  • Like 1
Link to comment
21 hours ago, Pat Stanford said:

Could you expand your criteria to be SEL & Type is Symbol and get it to do what you want?

I have found two ways to solve my problem. Path 1: I execute the command "vs.DSelectAll" before the menu command and then use the menu command with SEL=TRUE - which is somewhat cumbersome. Path 2: Instead of the menu command, I have created a Marionette object from all symbols, with which I can directly switch the views. I have now decided to go with this path...

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