70001794 Add CmdInsert default accepted values

Article 70001794
Type Wish
Product Engine
Version 8004
Date Added 6/17/2020
Fixed 8.8006.0.1 (8/23/2020)
Submitted by Giovanni Sava

Summary

Is it possible scale and rotation values to be proposed and accepted with Enter key pressed during cmdInsert command?

Solution

In version 8006.0.1 ScaleX , ScaleY, ScaleZ and angle parameters of CmdInsert, can be set as user inputs with default accepted values as follow:

doc.CommandAction.CmdInsert("VDDIM_DEFAULT", "user", "user:1.0", "user:2.0", "user:"+ Globals.DegreesToRadians(45.0).ToString());
Wait for the user
1. to input the insertion point of the block 2. to input the ScaleX with default valut value 1.0 in case the user press enter
3. to input the ScaleY with default valut value 2.0 in case the user press enter
4. to input the angle with default valut value 45 degrees in case the user press enter
 
      -OR-
 
doc.CommandAction.CmdInsert("VDDIM_DEFAULT", "user", VectorDraw.Professional.CommandActions.FollowMode.None, null, "user:3.3", "user:2.1", "user:4.4", "user:" + Globals.DegreesToRadians(65.0).ToString());
Wait for the user
1. to input the insertion point of the block 2. to input the ScaleX with default valut value 3.3 in case the user press enter
3. to input the ScaleY with default valut value 2.1 in case the user press enter
4. to input the ScaleZ with default valut value 4.4 in case the user press enter
4. to input the angle with default valut value 65 degrees in case the user press enter

Send comments on this topic.