Subscribe to this thread
Home - General / All posts - Decompose
ColinD

2,081 post(s)
#04-Apr-14 05:06

I lose a lot of time with large drawings (such as area contours created from a surface) waiting for them to render before I can run decompose. Would a query or script get the job done without having to go through that lengthy rendering in the first instance? Although I can't find Decompose in the object model.

Thanks


Aussie Nature Shots

adamw


10,447 post(s)
#04-Apr-14 07:34

It's pretty easily done using the Analyzer object:

'VBScript

Sub Main

  Set drw = Document.ComponentSet("Drawing")

  Set anl = Document.NewAnalyzer()

  anl.Decompose drw, drw.ObjectSet

End Sub

The Geom object also has a method named Decompose, but it's lower-level.

I guess you can do this using a query as well.

Alternatively, you could create a map with a dummy layer (some kind of the world map is useful), zoom somewhere where the drawing you'd like to transform wouldn't be visible, drop the drawing into the map (no rendering, as long as its bounding box does not intersect with the current bounds of the window), maybe turn the layer for the drawing off, then do the transform you want without going through the re-rendering.

ColinD

2,081 post(s)
#04-Apr-14 08:07

Great, thanks very much Adam.


Aussie Nature Shots

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.