Active Member
Posts: 8
Registered: ‎10-27-2007
Message 1 of 2 (114 Views)

Adding a Construct via AddConstruct to my ACA project

114 Views, 1 Replies
04-03-2013 04:11 AM


I try to use the ACA .Net c# API to add a new construct to my project. Currently in 2013.

In the samples I've found one for basic Projetnavigator things, but adding a new construct isn't covered.

Is there any example out there which shows the steps?





Active Member
Posts: 8
Registered: ‎10-27-2007
Message 2 of 2 (90 Views)

Re: Adding a Construct via AddConstruct to my ACA project

04-03-2013 06:48 AM in reply to: THoffeller

ok, found the solution. Here's some code from my method:


ProjectFile info = newProjectFile(_proj);

info.DrawingFullPath =

Path.Combine(Path.GetDirectoryName(item.FullName), filename + ".dwg");

info.FileName =

Path.Combine(Path.GetDirectoryName(item.FullName), filename + ".xml");

info.FileCategory =


info.Name = filename;

info.Description = filename +

" autogenerated by CadDev ProjectStartup";


//info.Category = new DirectoryInfo(Path.GetDirectoryName(item.FullName)).Name;ProjectRegion reg = newProjectRegion();


newRegionPair(System.Convert.ToUInt32(level.Id), System.Convert.ToUInt32(wing.Id)));


//info.Id = level.Id;if (String.IsNullOrEmpty(dirconf.DrawingTemplate))

_proj.AddConstruct(info, _proj.Configuration.DocumentTemplate);



_proj.AddConstruct(info, dirconf.DrawingTemplate);


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community