Jump to content

Mirror Custom Subassemblies


Recommended Posts

Posted

Hello,

 

I have spent a good deal of time creating a custom subassembly only to find out that I am unable to mirror it. I hope I'm overlooking a small setting somewhere. Any help is appreciated.

 

Thanks,

Phil

Posted

Did you add a "Side" parameter to your subassembly?

 

Some of the stock subassemblies do this. Then most of those have a "flip" variable that gets set to either 1 or -1, depending on whether the user selects Right or Left. This "flip" variable is used in calculations in the DrawImplement method.

 

It might be helpful to identify one of the stock subassemblies that has a "Side" parameter, then look at the way it is implemented in the stock subassembly code.

Posted

Richard,

 

Thank you for your reply. However, I do not know what you are refering to when you say 'DrawImplement' method. Also, I do not know how to view the stock subassembly code. I'm just getting started with this and any additional help would be appreciated.

 

Thanks,

Phil

Posted

They're all in the C3D installation directory -> Sample -> Civil 3D API -> C3DStockSubAssemblies.

Posted

got it! Thanks for your help.

 

Phil

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...