.NET

.NET

Reply
Contributor
19 Posts
0 Kudos
Registered: ‎01-21-2014
Post 1 of 3
Accepted Solution

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

213 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
433 Posts
67 Kudos
Registered: ‎05-22-2006
Post 2 of 3

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
19 Posts
0 Kudos
Registered: ‎01-21-2014
Post 3 of 3

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!