Project Objects to View

I have about over 10 feature lines that would like to project onto the section views. Is there any available node in Civil 3D Dynamo that can help? I have created a simple model for that study.
sectionviews.dyn (16.2 KB) sectionviews.dwg (994.9 KB)

Have the same question, I only way I can think of is to create a python node, and use
adoc.SendStringToExecute(“ProjectObjectsToSect\n”, False, False, True)
editor.SetImpliedSelection(object_ids_array)
to send the command and select the view and the feature line, but the problem is that SetImpliedSelection only works once, say I use a for loop, but only the last view will be selected, so this doesn’t really solve the problem, hope someone else can shed some light.

1 Like

HI
@tzL6PRM
Could you give us a code?
how did you turn object_ids TO object_ids_array

I need why to solve a problem I have here
May I find the solution
Thanks

import System
object_ids_array = System.Array[ObjectId](object_ids_list)
editor.SetImpliedSelection(object_ids_array)

hopes this helps

1 Like

I am looking for this for a while, sadly, without success. I’ll definietly try your ideas.

Please vote on this Idea, and maybe in the future easier methods would be available.

2 Likes