Promote Surface and Export to LandXML

I’m trying to build an export tool for when we receive CAD export requests on our site/civil files. The typical process is to copy a set of Civil3D files/dwgs to an export folder, then open those files, remove all XREFs and purge. I have this part working with a python script that completes those steps. For the survey files, we also need to promote our existing and proposed surfaces, then export a LandXML. I can’t find much in the built-in Dynamo nodes or Camber that is related to promoting surfaces. There are LandXML nodes but it only runs on the current doc and not an external document. The copy to a new folder, remove Xref and purge steps still save some time so I can stop there, but has anyone had any luck with promoting surfaces and export to LandXML on a list of documents in a folder?

Hi @jeffr,

We don’t have an API for promoting data references, but you could try running the PROMOTEREFERENCE command.

  1. Build a selection set of all the surfaces you want
  2. Run PROMOTEREFERENCE
1 Like