Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exploding Smart Objects

4 REPLIES 4
Reply
Message 1 of 5
CADguy82
518 Views, 4 Replies

Exploding Smart Objects

Is there some way to prevent CAD Users from exploding any and all smart objects within a drawing?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: CADguy82

at some point, in some place and time, stevewalz typed:

> Is there some way to prevent CAD Users from exploding any and all
> smart objects within a drawing?

2"x4"? If it's internal, then I'd say training, discipline, and
documentation.

--
----
Sorry, nothing snappy here to say.
Message 3 of 5
CADguy82
in reply to: CADguy82

There's no way to redefine the explode command via lisp or anything so that smart objects cannot be exploded?
Message 4 of 5
kcobabe
in reply to: CADguy82

with a little command call undefine. I undefine the xplode command and exhange it with the burst command in the hot keys. More times then not they never now the difference. About the only time you will get a question about it is on a pline.

I think if you make a lisp routine that uses the explode and have a box come up that asks if they are sure they want to do that and the amount of information that will be lost as a result may help as well.

R10 - 2020 ACAD
2008 - 2020 Civil 3D
2014 - 2020 Plant 3D
2014 - 2020 Revit
V8i - V8i SS4 Microstation
Infraworks
2018-2020 Inventor
2020 Navisworks
Message 5 of 5
Anonymous
in reply to: CADguy82

the undefine is not dependable IMO, you can just type .explode to get by that.
I would write a little editor reactor with lisp that watched for the explode command:

This sets up the reactor:
(VLR-EDITOR-REACTOR NIL '((:VLR-commandWillStart . MyCallbackFunction)))

Then the callback function that runs whenever a command ended:
(DEFUN MyCallbackFunction (REACTOR COMMAND_L)
(IF (MEMBER "EXPLODE" COMMAND_L)
(progn
(do whatever here)
)
)
)

I have never written a reactor to cancel a command, look in the customization group a bit for code to filter the items
that will be exploded and cancel the command.
Its even easier as I recall in VBA, the events are just public functions.
The trick in this case might be dealing with theselection set, it might be better to react to commandended or other
options.
Reactors are good because they trap all ways of running a command...



stevewalz <>
|>Is there some way to prevent CAD Users from exploding any and all smart objects within a drawing?
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report