I am using dynamo in civil 3d. I am always stuck in object, polyline, polycurve and curve. most of dynamo nodes are for polycurve and curve.
Oki, not sure about your issue. What do you want to achieve with your dynamo graph?
when i select object in CAD like polyline or circle to sweep. But when i use solidbysweep, i always get warning as input are not curve.
You need to convert the autocad geometry into dynamo geometry before using the nodes like SolidBySweep. Once you’ve gotten your final geometry in dynamo then you convert that to autocad geometry.
To elaborate on @AdammReilly’s post - you can generally use an Object.Geometry to convert from the CAD object to Dynamo geometry. There are exceptions around specific (and generally rather complex) object types, in which cases you want to go to that specific object type in your Dynamo library and look for a means of pulling the geometry from there (it should be a property node, but in some cases may be an action).
thnaks for letting me know to convert CAD object to dynamo object. but now, how can i rotate my profile as per my path? how can i sweep as we do in autocad 3d? my path vector and degree can be anything in 3 dimention, how can i make sure my profile takes it always normal to path?
Assuming your profile is at the origin, find a coordinate system along the path - Curve.CoordinateSystemAtParameter usually works. Then use a Geometry.Transform to convert the profile to one perpendicular to the curve.
If your profile isn’t at the origin, perhaps on the curve but not perpendicular, you can transform it from it’s coordinate system to the origin, or just manipulate it in place by Geometry.Rotate or Geometry.Translate or other manipulation methods.