Issue: API support for subassembly composer Civil3D

Issue: API support for subassembly composer Civil3D

harsh_kajave
Explorer Explorer
1,037 Views
6 Replies
Message 1 of 7

Issue: API support for subassembly composer Civil3D

harsh_kajave
Explorer
Explorer

I aim to generate a subassembly using Excel data. Can i create plugin in using API if available for Subassembly Composer Studio?

I can create a plugin in civil 3D and can create subassembly using polyline but cannot add properties to it similar like composer studio. Is there a way to add properties to subassembly similar like composer studio or subassembly created using palette tool.

0 Likes
1,038 Views
6 Replies
Replies (6)
Message 2 of 7

ecfernandez
Mentor
Mentor

Hi @harsh_kajave, When you say "subassembly composer studio," are you referring to "Subassembly Composer"? I remember many years ago, there was a program called Subassembly Studio (or similar). That's why I'm asking. So, if it is that program, I recommend using the new Subassembly Composer. It is better than creating subassemblies from polylines and creating a custom tool to add the properties.

 

I hope this helps. Best regards!

Camilo Fernández

Civil engineer | Specialist in design, construction, and maintenance of roadways

EESignature

LinkedIn
0 Likes
Message 3 of 7

harsh_kajave
Explorer
Explorer

 @ecfernandez 

Yes I am rereferring to Subassembly composer.

I want to create a subassemblies automatically rather than manually doing it in Subassembly composer.

I can create it using polyline but cannot add parameters to it.

Is there a way to make it happen? Please suggest 

0 Likes
Message 4 of 7

matt_anderson_pe
Collaborator
Collaborator

I think you misunderstood the purpose of the Subassembly composer.  Its purpose was to allow custom assembly WITHOUT programming knowledge. 

If you want to create subassemblies programmatically - use the Civil 3D API.

Matthew Anderson, PE

Inundar, LLC
https://wettingthewhetstone.substack.com
0 Likes
Message 5 of 7

harsh_kajave
Explorer
Explorer

Thank you for the reply @matt_anderson_pe .
I am now creating the subassemblies using civil3D API. But the case is, when I am adding the properties to the subassemblies, those are not working the same way when it works for .pkt file imported to civil3D.

I can see the properties in civil3D property pallet but when I change something it is not getting any impact on the subassemblies. (unable to set behavior of the properties).
Those properties are visible under Property pallet but not visible in Subassembly properties. 

Please find the attached images for your reference.
When I am importing the pkt file, the properties can be seen as shown in the image below.


My aim is to create subassemblies programmatically using Civil3D Api that should be similar to the subassembly composer as I have to avoid manual work.

 

Any help would be appreciated.
Thank you!

0 Likes
Message 6 of 7

matt_anderson_pe
Collaborator
Collaborator

I suggest you connect with the Autodesk Developer Network (ADN) or move this discussion to the Civil 3D Customization forum.

https://aps.autodesk.com/autodesk-developer-programs/adn/membership

Matthew Anderson, PE

Inundar, LLC
https://wettingthewhetstone.substack.com
0 Likes
Message 7 of 7

hippe013
Advisor
Advisor

It appears to me that you are not creating your subassemblies correctly using the Civil 3D API. Using the Civil 3D API you create a DLL file, an ATC file and an image (icon) file. Those then get zipped and renamed as a PKT file for import into Civil 3d. The parameters that you define should affect the subassembly once it is imported into a drawing just like any other subassembly defined using .NET. 

0 Likes