Hi!
Dear experts!
Please tell how i can create a corridor from a feature lines, without using a alignment and profile.
I assume that there is no built-in node for this feature?
Maybe this can be done using the API and Python Script?
Thanks!
Hi!
Dear experts!
Please tell how i can create a corridor from a feature lines, without using a alignment and profile.
I assume that there is no built-in node for this feature?
Maybe this can be done using the API and Python Script?
Thanks!
No-one has an idea about this issue how to create corridor from a feature line by using Dynamo?
No, it isn’t possible to do this through Dynamo because the Civil 3D API doesn’t provide any way to do it. The only way to accomplish it is to first create an alignment and profile from the feature line and then create the corridor with a standard alignment/profile baseline.
No
ok, thanks!
Something changed with create corridor from a featurelines by Dynamo i new version Civl 2024.2??
Thx for this … it works very well : )
The feature lines in this example provided paths for walls, and … the corridors built the walls …
import sys
import clr
from traceback import format_exc
from datetime import datetime
clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AecBaseMgd')
clr.AddReference('AecPropDataMgd')
clr.AddReference('AeccDbMgd')
from Autodesk.AutoCAD.Runtime import *
from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoCAD.EditorInput import *
from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.AutoCAD.Geometry import *
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *
elog = []
an = IN[1]
dts = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
adoc = Application.DocumentManager.MdiActiveDocument
cdoc = CivilDocument.GetCivilDocument(adoc.Database)
editor = adoc.Editor
tv0 = TypedValue(0, 'AECC_FEATURE_LINE')
tva = []
tva.append(tv0)
selFltr = SelectionFilter(tva)
psr = editor.GetSelection(selFltr)
selset = psr.Value
c = 0
sc = 0
with adoc.LockDocument():
with adoc.Database as db:
with db.TransactionManager.StartTransaction() as t:
daID = cdoc.AssemblyCollection[an]
for s in selset:
id = s.ObjectId
try:
dFL = t.GetObject(id,OpenMode.ForWrite)
if len(dFL.Name.strip()) < 1:
c = c + 1
fn = dts + "-" + str(c).zfill(4)
dFL.Name = fn
c = c + 1
cn = dts + "-" + str(c).zfill(4)
dcID = cdoc.CorridorCollection.Add(cn,dFL.Name,id,dFL.Name,daID)
dcr = t.GetObject(dcID,OpenMode.ForWrite)
dcr.Rebuild()
sc = sc + 1
except:
elog.append(format_exc())
t.Commit()
Application.ShowAlertDialog('Corridors created by this process: ' + str(sc))
OUT = elog
hello everyone
I’m having a problem creating a CORRIDOR using DYNAMO, I don’t know what’s wrong with it.
anyone can help me with it?
Please create a new topic though this is not related.
Then, please check that you have correct inputs (string etc.) and also expand the node in the middle.
Some example dwg also might help.
You have the dyn file, I find this work super interesting, I’m trying to implement it but I don’t know how to make it work. Thank you very much