Message 1 of 1
How to import a Subassembly into the Civil 3D Tool Palette via .NET C# code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
With this code, I can almost add a Subassembly, and I got it from the Through The Interface blog from 2009. I haven't found much material on this subject, so I'm open to a new way of doing it.
string path = "C://pkt//Ferrovias.pkt"
ImageInfo ii = new ImageInfo();
ii.Size = new System.Drawing.Size(65, 65);
// And then we use our dummy tool to create the
// command tool
//como importar os subassemblies para a pallete tool
tool.CreateCommandTool(
pallete,
namePKT,
ii,
"_CreateSubAssemblyTool \"" + path + "\""
);
I am trying to implement the ImportSubassembly command of the Tool Palette via .Net C# code. When I click on one of these pkt files that I imported with the above code...
It seems that my code is not recognizing the properties correctly
When I manually use the Import Subassembly option, it works fine. I want my code to do the same thing