New! Speckle 2.0 AutoCAD / Civil3D 📣 suggestions

Calling all AutoCAD and Civil3D power users @Speckle_Insider! A new connector MVP is in the works :toolbox: and we’re looking for input and suggestions re:

  • Use cases for stream data organization - e.g. layers vs. blocks
  • Supported conversions, especially for C3D


The connector is super early stages with basic geometry support - post any suggestions and/or requests here to help with feature design (& :crossed_fingers: for 2.0 beta integration) !


ping @Guus & @Joost_Schlebaum (esp for civil!)


Awesome, good stuff!

Re: C3D
Featurelines -> Polycurves would be the no1 thing to tackle for infrastructure :slight_smile:
This would enable streaming between C3D highway design and structural design in Revit, Tekla etc.


This will be first on the list for C3D conversion testing, thanks for the tip!


Also @g.tsak and @JdB_RHDHV @dirksliepenbeek :slight_smile:

1 Like

Hi @clrkng!

Thanks for sharing. Great to see these connectors being developed :star_struck:

As a follow up on our community meetup discussion on the Rhino/AutoCAD connector, I’d like to share some (random) thoughts.

I was charmed by the feature you are developing for the Rhino connector to upgrade Rhino geometry to specific Speckle types using Rhino user attributes and/or layer names.

However, I can see some limitations using this method:

  • It somewhat enforces users to hack layer names/user attributes outside of their purpose, cluttering up the native document with Speckle specific props, with some risks involved.
  • Rhino has the feature to add user attributes, most other CAD software doesn’t (iirc :crazy_face: e.g. AutoCAD,Sketchup). So this won’t work for those packages.

To some extent, I think this functionality can be added to the client UI in a specific selection & mapping form for layer based CAD software as follows (powerpoint extravaganza incoming):

The core principle is that this loads the available Speckletype objects and the geometry filter dynamically informs the speckletype dropdown list (i.e. showing what you can convert a line to). In addition:

  • Could work for AutoCAD, Sketchup, and any other non-BIM CAD package (Unity, Blender, Illustrator??).
  • Perhaps have an option to save/load mapping configuration locally.
  • Allows non-BIM teams to collaborate with BIM teams

As I am looking at the image, I do realize that it has a limitation to not subgroup within a layer (i.e. select beams and colums from the structure layer). But this could be managed in the native document.

I wrote this from a user POV, so apologies if this is impossible to develop! :sweat_smile: I hope it’s a bit clear.


@Guus All great points, and wow :boom: that powerpoint mockup!

We are definitely planning a more sophisticated interface for schema mapping post beta, with potential UI integration pending mac support.

As you’ve identified, the core challenge is scoping out the most useful filtering method based on sort hierarchies & geometry type. This would inevitably influence file organization & user workflows for each non-visual programming application: easy for apps that primarily use Layers to sort, but needs :thinking: for apps with multiple sort mechanisms like Blocks, Filters, Selection Sets, etc.

For now, schema conversion for AutoCAD could be implemented via command to set object XData, similar to Rhino (:warning: pseudocode):

 [CommandMethod("SpeckleSchema", CommandFlags.UsePickSet)]
 public static void SetSchema()
   // get user selected objects, could add selection filters
   var ids = new List<ObjectId>();
   PromptSelectionResult selection = Doc.Editor.GetSelection();
   ids = selection.Value.GetObjectIds().ToList();

   foreach (var id in ids)
     // decide schema here, by assumption or another user input prompt
     string schema = "";
     switch (id.ObjectClass.DxfName)
       case "LINE":
         schema = "MaybeAColumn"; break;

     // add schema to object XData
     using (Transaction tr = Doc.TransactionManager.StartTransaction())
       DBObject obj = tr.GetObject(id, OpenMode.ForWrite);
       obj.XData = new ResultBuffer(new TypedValue(Convert.ToInt32(DxfCode.Text), schema));

And schema properties would be checked on conversion before sending the stream:

public Base ConvertToSpeckle(object obj)
  switch (obj)
    case DBObject o:
      // check for speckle schema xdata
      string schema = GetSpeckleSchema(o.XData);
      if (schema != null)
        return ObjectToSpeckleBuiltElement(o);
      else return ObjectToSpeckle(o);

Great feedback, the schema builder feature might need a whole other thread to itself!


Great stuff!

@gleeuwdrent: interesting to have a look at this.

1 Like

Featurelines as mentioned earlier, Alignments is a must. I see it in the same category as Featureline

I think it’s interesting to bring pipe networks/pressure pipe networks data to Speckle. Especially if you work with with non-precast structures. Extend exchange to hydraulic calculations, Structural detailing of a Manhole to Revit and structural calculations to calculations software.

Also what can C3D retrieve back from other programs, then I think elements from other software to blocks. Example piles to blocks or v.v. Linear elements like railing to a 3D polyline or solids export.


Would there be some way to manage shared coordinates through Speckle? Revit has lots of trouble with this when encountering many different (legitimate) things surveyors do in AutoCAD or Civil3D files.

I would see this being implemented as a transformation that is performed on geometry as it’s streamed to one platform or another. So each stream would have to store a transformation relative to a known point that is coordinated between each of the files. This is probably a lot of thinking for a pretty narrow use case, but for architects at least this is a big unsolved problem.

This is definitely a common pain point, glad you brought it up Nick! Pinning this as an issue when we move towards developing project management features after the beta. We could potentially store an origin point on a project / team level so that the correct transformation matrix can be automatically applied to all child streams :slightly_smiling_face:


Quick intermission to say that, currently, transformations relative to Revit’s Base point are applied when receiving and sending. Not sure how AutoCAD deals with it, but we should definitely align :slight_smile:

A post was split to a new topic: AutoCAD connector fatal error