Where is SnapAng command in CUI?

Where is SnapAng command in CUI?

Anonymous
Not applicable
2,773 Views
16 Replies
Message 1 of 17

Where is SnapAng command in CUI?

Anonymous
Not applicable

Hi,

 

I cannot find "snapang" command in the command list CUI (Customize User Interface). Does it have a different name?

 

Wojtek 

0 Likes
Accepted solutions (2)
2,774 Views
16 Replies
Replies (16)
Message 2 of 17

cadffm
Consultant
Consultant

Not predefined, create your own "command"

'_.snapang;45

 

Sebastian

Message 3 of 17

Anonymous
Not applicable

Hi,

 

thank you for your answer.

 

The problem is that I want use "snapang" command with my side mouse button, but to do it I have to transfer this command from Command List to Customizations in All Files in CUI. 

 

Any ideas how can I solve this problem?

0 Likes
Message 4 of 17

imadHabash
Mentor
Mentor

Hi,

>> I cannot find "snapang" command in the command list CUI . Does it have a different name?

SNAPANG NOT a command , SNAPANG  is a System Variable . 

 

Imad Habash

EESignature

Message 5 of 17

Anonymous
Not applicable

Thank you for Your answers. 

 

Is there a possibility to drag out "snapang" to the Toolbar then?

0 Likes
Message 6 of 17

imadHabash
Mentor
Mentor

@Anonymous wrote:

Thank you for Your answers. 

 

Is there a possibility to drag out "snapang" to the Toolbar then?


===========================================================

No ... as much as i know . 

 

 

Imad Habash

EESignature

0 Likes
Message 7 of 17

Anonymous
Not applicable

So strange.... I cannot believe this… 😞

0 Likes
Message 8 of 17

cadffm
Consultant
Consultant

I am not sure what you need, but it is not a problem

1. to have "Snapang" in the command list in the lower left part of CUI command

   Create your own new command there.

2. also possible to set "Snapang" to a shortcut (your mouse should be able to use it)

..

If I pass the subject, please excuse me.

Please upload a picture of a valid "command" where you need snapang inside CUI dialog?

And if possible, also a picture of you Mouse Setting where you set up this command.

Sebastian

Message 9 of 17

Anonymous
Not applicable

You understand my problem very well.

 

The problem is that I have no idea what should I Write in to fill up all gaps to create a new command… 

I read on internet how to create it but with no results 😕

 

Would you please give me an advice?

0 Likes
Message 10 of 17

cadffm
Consultant
Consultant

@cadffm  schrieb:

Not predefined, create your own "command"

'_.snapang;45

 


Sample for value 45..

 

 

 

190829-4.JPG

Sebastian

Message 11 of 17

Anonymous
Not applicable

OK. Nice. We are closer!

 

I wrote this line in the "Macro" section.

 

But it turns the angle 45 degrees. This what I want to do is to use snapang command, then mark 2 point on the line so I would get the same angle as the line... The thing is that I change different angles according to the lines in the drawing.

0 Likes
Message 12 of 17

cadffm
Consultant
Consultant
Accepted solution

then remove ";45" from the end of the macro

 

Sebastian

Message 13 of 17

Anonymous
Not applicable

Thank you!!! Oh my god you made my life much easier!

 

Can we og one step forward? Do I need en external program to set this command on my mouse or is it possible to do this in Autocad?

0 Likes
Message 14 of 17

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:
.... what I want to do is to use snapang command, then mark 2 point on the line so I would get the same angle as the line... The thing is that I change different angles according to the lines in the drawing.

 

AlignSnapAng.lsp, with its AS and ASB commands, available >here<, is designed to do just that, and you don't  need to mark 2 points -- just select the Line at one  place, or nearly any kind of thing [see the file and the description at that Message], and the SNAPANG System Variable will be set to align with it, and under the ASB command, the SNAPBASE System Variable will also be set relative to it.  See also further discussion on that thread.

Kent Cooper, AIA
Message 15 of 17

Anonymous
Not applicable

@Kent1CooperHey. This is great. I can do this twice faster with Your solution.

 

It Works very nice but please tell me how can I change back the angle to 0 degrees after changing the angle according to the line?

0 Likes
Message 16 of 17

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:
....

tell me how can I change back the angle to 0 degrees after changing the angle according to the line?


 

I have a little macro in a Tool Palette button that does this:

 

  'snapbase 0,0 'snapang 0

 

That could also be defined into a command name, if that would be easier for you:

 

(defun C:AZZ (); = Align back to Zero and Zero

  (setvar 'snapbase '(0 0 0))

  (setvar 'snapang 0.0)

)

Kent Cooper, AIA
Message 17 of 17

Anonymous
Not applicable

Big thanks!!! 🙂

0 Likes