.NET

.NET

Reply
Contributor
andy_pu
Posts: 19
Registered: ‎01-21-2014
Message 1 of 3 (211 Views)
Accepted Solution

is it possible to call the command "flatshot" without dialogue

211 Views, 2 Replies
01-22-2014 12:05 AM

Hi! Can I call flatshot with default parameters from command line оr .NET API? Without showing dialog

Hi Andy,

 

the FLATSHOT command doesn't have a command line version (there is no -FLATSHOT variant of the command) and it still shows its dialog when the CMDDIA sysvar is set to 0. Therefore, i'm going to say that its not possible to silently invoke this command from the API. You could use Windows messages to send data to the dialog, but that is cumbersome at best. The only other option I see is to implement your own flattening routine that mimics FLATSHOT, but that is a lot of work.

ADN Support Specialist
StephenPreston
Posts: 429
Registered: ‎05-22-2006
Message 2 of 3 (170 Views)

Re: is it possible to call the command "flatshot" without dialogue

01-24-2014 12:19 PM in reply to: andy_pu

Hi Andy,

 

the FLATSHOT command doesn't have a command line version (there is no -FLATSHOT variant of the command) and it still shows its dialog when the CMDDIA sysvar is set to 0. Therefore, i'm going to say that its not possible to silently invoke this command from the API. You could use Windows messages to send data to the dialog, but that is cumbersome at best. The only other option I see is to implement your own flattening routine that mimics FLATSHOT, but that is a lot of work.

Cheers,

Stephen Preston
Autodesk Developer Network
Contributor
andy_pu
Posts: 19
Registered: ‎01-21-2014
Message 3 of 3 (149 Views)

Re: is it possible to call the command "flatshot" without dialogue

01-25-2014 10:46 AM in reply to: StephenPreston

Thank you so much for explanation!!!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.