Set Variable for dimBlk

Set Variable for dimBlk

Anonymous
Not applicable
963 Views
4 Replies
Message 1 of 5

Set Variable for dimBlk

Anonymous
Not applicable
Hi All
How To Set .SetVariable "DIMBLK1", "_ClosedFilled" and
.SetVariable "DIMBLK2", "_ClosedFilled"

Getvariable give nothing for this variable.

Thanks for help
Amrit
0 Likes
964 Views
4 Replies
Replies (4)
Message 2 of 5

norman.yuan
Mentor
Mentor
Have you looked at Acad help by searching "DIMBLK" or "DIMBLK1" or "DIMBLK2"?

When the default arrowhead (closed-filled arrowhead) is used in Acad, the value of System Variables "DIMBLK", "DIMBLK1" and DIMBLK2" is "" (blank string). That is why GetVariable("DIMBLK") returns "".

Read Acad's Help for more details.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable
hi norman
ok i know that is default but how to return back default value when we lost
it.

i mean to say. i change Dimblk1 to "Dot" and i play around.
now i don't have any value to Store for DimBlk1 because it return ""

now again i need to go to ClosedFilled so how can i go.

it reutrn error when we set to " ".

well, i thing there most be some way for it.

Thanks


wrote in message news:6299006@discussion.autodesk.com...
Have you looked at Acad help by searching "DIMBLK" or "DIMBLK1" or
"DIMBLK2"?

When the default arrowhead (closed-filled arrowhead) is used in Acad, the
value of System Variables "DIMBLK", "DIMBLK1" and DIMBLK2" is "" (blank
string). That is why GetVariable("DIMBLK") returns "".

Read Acad's Help for more details.
0 Likes
Message 4 of 5

norman.yuan
Mentor
Mentor
Again, have you read/searched Acad Help? The answer is right there: to set system variable DIMBLK/DIMBLK1/DIMBLK2 back to its default "" value (closed-filled arrowhead), you enter a "." ( a dot).

Quote from Acad Help:

To return to the default, closed-filled arrowhead display, enter a single period (.).


Here is sample code
{code}

Public Sub Test()

ThisDrawing.SetVariable "DIMBLK", "_DOT"
MsgBox "->" & ThisDrawing.GetVariable("DIMBLK") & "<-"

ThisDrawing.SetVariable "DIMBLK", "."
MsgBox "->" & ThisDrawing.GetVariable("DIMBLK") & "<-"

End Sub

{code}

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Norman

Sure i will see help file. i search in hlep also. there is no such topic
for
>To return to the default, closed-filled arrowhead display, enter a
>single period (.).


any way thnaks a lot again. if this work this is good for me.

I really appreciate your input. Thanks.
Amrit

wrote in message news:6299043@discussion.autodesk.com...
Again, have you read/searched Acad Help? The answer is right there: to set
system variable DIMBLK/DIMBLK1/DIMBLK2 back to its default "" value
(closed-filled arrowhead), you enter a "." ( a dot).

Quote from Acad Help:




Here is sample code
{code}

Public Sub Test()

ThisDrawing.SetVariable "DIMBLK", "_DOT"
MsgBox "->" & ThisDrawing.GetVariable("DIMBLK") & "<-"

ThisDrawing.SetVariable "DIMBLK", "."
MsgBox "->" & ThisDrawing.GetVariable("DIMBLK") & "<-"

End Sub

{code}
0 Likes