You can use dynamo SL or SLG nodes as input, then you can access the InternalObjectId and you have to open the object using that id.
Code examples:
Sample line group input:
Hi,
There are some nodes in Camber, Arkance and C3DToolkit packages, but I don’t know their limitations.
Last year I tested section view group creation, but I did not get it to production, so use it with caution.
It should create section view group for every input sample line groups.
It is also made for specific template, so you have to modify style names in the code. As I said it is not complete, not well tested, so bugs may occur, i.e. source selection. (see video)
That said here is the …
Get group using sample line:
Sorry, I missed the part that you wanted to add surfaces.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
# Add Assemblies for AutoCAD and Civil3D
clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AecBaseMgd')
clr.AddReference('AecPropDataMgd')
clr.AddReference('AeccDbMgd')
# Import references from AutoCAD
from Autodesk.AutoCAD.Runtime import *
from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoC…