Issue with scripting the creation of detail views

Hi again. I think the Misalignment has sort of fixed itself and I’ve now run into a new issue. I wanted to script the creation of the two detail views, but when copy’ing the detail view with CopyObject the section within the Detail View copy gets turned off.

Here’s the current WIP script:

import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs

display_mode_hidden = Rhino.Display.DisplayModeDescription.FindByName("Hidden")
display_mode_Shaded = Rhino.Display.DisplayModeDescription.FindByName("SectionMaterial")

detailView_L = rs.GetObjects(filter=32768)         

for detail in detailView_L:
    rs.ObjectLayer(detail,"Documentation::Detail View::Hidden")
    detailDup = rs.CopyObject(detail)
    rs.ObjectLayer(detailDup,"Documentation::Detail View::SectionMaterial")
    detail = sc.doc.Objects.Find(detail)
    detail.Viewport.DisplayMode = display_mode_hidden
    detail.DetailGeometry.IsProjectionLocked = True
    detailDup = sc.doc.Objects.Find(detailDup)
    detailDup.Viewport.DisplayMode = display_mode_Shaded

A easier way of testing this is this way:

Select a DetailView that shows a VisualARQ section and run this script:

import rhinoscriptsyntax as rs

id = rs.GetObject("Select object to copy")
if id:
    start = rs.GetPoint("Point to copy from")
    if start:
        end = rs.GetPoint("Point to copy to", start)
        if end:
            translation = end-start
            rs.CopyObject( id, translation )

Hi @rheinason,

I’ve fixed this issue in VisualARQ 2.12, which will be released in a few weeks. I can send you a WIP installer if you want to try it.



I’d love a WIP!

Done! I have sent it in a PM.