Jump to content
Developer Wiki and Function Reference Links ×

Ungroup without Dialog box


Kellie

Recommended Posts

Are you talking about the "Do you really want to ungroup high level objects" dialog?

If so, I don't know of any simple way to bypass the message using Vectorscript. The UNGROUP; command in VS brings up the same error message.

You might be able to walk the object tree using FInGroup and/or FIn3D and the appropriate view and then set the parent of each object to the active layer.

It looks like it might work, but all the fringe cases are likely to be a killer.

Good Luck,

Pat

Link to comment

Hi Pat, the reason I need to bypass a crash bug that I have in Vectorscript in Vectorworks 2008. Script crashes after deleting a high level object it doesn't like in this version before changing sheet, almost like a memory leak problem. But ungrouping the objects before deleting them seems to bypass it. Maybe using FInGroup and deleting the low level objects one at a time will bypass it.

Way too many of my scripts no longer work because there are so many bugs.

Thanks for your suggestion.

Link to comment
  • Vectorworks, Inc Employee

Kellie,

What object are you trying to delete and where are you trying to delete it from? The details are important here so we can identify the root of the problem.

One thing to try is to move the object to a layer using the setparent callthen delete it.

Kevin

Link to comment

What kind of bugs are you seeing? I have found VS to be quite stable.

The change in VW2008 to go entirely to RGB colors has certainly made some things that relied on the old standard color palette locations fail. And there are certainly a lot of functions I would like to see missing, but I haven't come across many things that have gotten broken in later version of VW that were once working.

Pat

Link to comment

Vectorworks itself generally is stable, vectorscript on the other hand has bugs. We have had to go back to VW sp1 because sp3 was unable to call filled arrow heads using the marker() command. In sp1, the arrow heads were mixed around marker(1) became marker (9) from memory. Sp3, no filled arrowhead at all. Made one of our main tools completely useless.

This current problem is with a script which creates a print view so that multiple sheets can be printed at the same time or sent to a single pdf. Has worked fine since version 9, now in 2008 when there are associative dimensions within the original layers it will create the printing layers fine, but unless those highlevel objects are ungrouped prior to deleting the layers the application crashes when going back to the original sheet. (This happens in sp1 & sp3)

And then minor issues I have with some high level objects when they are copied onto a printing layer using vectorscript look like their scales are incorrect (redraw and redrawall do nothing) unless they are placed on the front most print layer or moved manually.

Moving to Vectorworks 2008 has been the most frustrating upgrade so far for us, and this office has been using it since Minicad 6.

As a note, I have reported that arrow issue to both our supplier and on the bug report page on this website, no reply from either.

Link to comment
  • Vectorworks, Inc Employee

Kellie,

The reason you are having problems with the Marker() call is that is it obsolete as of 2008.

Marker() has been replaced by SetDefaultBeginningMarker and SetDefaultEndMarker. Several other Set/Get type marker calls have been added in order to support fifferent markers on each end of the line.

If you have a smaple file and a test script that will cause VW to crash please submit the file and the script to bugsubmit@nemetschek.net.

Link to comment
  • 3 weeks later...

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