Hi,
I just made the transition from AutoCAD 2009 to 2014 last week so I am unfamiliar with this version.
1-It's possible to have variables that are attached to the file?
2-It's possible to insert a block of ToolPalettes by "forcing" the layer and size with the variables created.
ex : block outlet created on the layer 0
Drawing A:
variable layer = power
variable size = 1/4
When I insert the block outlet from my Tool palettes it will be on the layer "PPOW" and perform a scale of "48"
Drawing B:
variable layer = LowPower
variable size = 3/8
When I insert the block outlet from my Tool palettes it will be on the layer"LPOW" and perform a scale of "32"
Thanks for your help
Johanne
Solved! Go to Solution.
Solved by dbroad. Go to Solution.
What I understand you to want is a way that the tool palette system can operate differently based on drawing resident variables.
Without programming customization what you want is not possible.
The tool palette system is designed for consistency, not variability. Whatever the tool properties are set to, will be used when content is inserted. AutoCAD verticals have an alternate content path that uses the design center and can accept command macros which could do what you want along with the insertion.
You could also set up reactors for rule based behaviors (possibly tracking the "EXECUTETOOL" command). The payback for such investment though is questionable.
Thanks for the information
But the variable Users1-5 are not saved in the drawing.
An experienced user had performed routines for automated insertion block. Unfortunately, the user no longer work with us (disease) and a good part of the routine is ARX. I'm not having the source code so I can not modify these routines.
Currently I edit the block properties manually or made matchprop.
This slowed work and creates ,sometime, mistakes.
Thanks for the tips!
Exactly.
Not being familiar with the programming, I looked for a option without a programming.
I will read the forum "programming" to inspire me. Not knowing any of the .VB. I'll probably try my hand with the lisp and design center
Thank you for taking the time guided beginner like me!
You're welcome. Glad to help.
If you want to play around to see the possibilities of reactors, copy/paste this to your command line and see the interactivity. Enter the command "stop" when your done.
(if myreact (vlr-remove myreact))
(setq myreact (vlr-command-reactor '("EXECUTETOOL")'((:vlr-commandended . tpannounce))))
(defun tpannounce (r cl)
(if (member (car cl) (vlr-data r))(alert "Tool palette activity")))
(defun c:stop()(vlr-remove myreact)(setq myreact nil)(princ))
joh.richard wrote:
But the variable Users1-5 are not saved in the drawing.
Correct. I was directly answering the question "It's possible to have variables that are attached to the file?" For integers and reals, yes. Strings, no.
"Strings, no."
I was just about to "challenge" you on that point, but it appears to be true!
Can you explain why the "USERSn" vars are not saved?