entmod and sendcommand

entmod and sendcommand

Anonymous
Not applicable
198 Views
4 Replies
Message 1 of 5

entmod and sendcommand

Anonymous
Not applicable
I was working on using Sendcommand for entmod of an object but i got really
PO'd and I deleted the entire code. Not a good night.

Can someone post and example code of sending entmod via Sendcommand.

This entity is not editable directly from ActiveX yet so I need to entmod
it.

--
Rob Starz
Rob@stardsign.com
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
ADT Curtainwall Suite
ADT Restroom Suite
**ADTcadPac coming soon**
http://www.stardsign.com/main.htm <
StarDsign cad solution
0 Likes
199 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
What do you need to use (entmod) for in this case?

Rob Starz wrote:
>
> I was working on using Sendcommand for entmod of an object but i got really
> PO'd and I deleted the entire code. Not a good night.
>
> Can someone post and example code of sending entmod via Sendcommand.
>
> This entity is not editable directly from ActiveX yet so I need to entmod
> it.
>
> --
> Rob Starz
> Rob@stardsign.com
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ADT Curtainwall Suite
> ADT Restroom Suite
> **ADTcadPac coming soon**
> http://www.stardsign.com/main.htm <
> StarDsign cad solution

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.tanzillo@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 3 of 5

Anonymous
Not applicable
There is a variable in Architectural Desktop Wall entities that is not
available via ActiveX yet. ADT guys have admitted to leaving access to this
out.

So while the entire VBA ap gets all the setting through ActiveX the
CleanupGroup is not and I have to go through Enget of the dxf code. Now
when I want to change this variable I need to Entmod the dxf code of the
wall. PIA but they say it is the only way....for now.

<
Hi Rob,
You could use the DXF Code 343 directly under the imp_wall object to get
at this. You're right, this should be in the Active X api, sorry!

-Chad
<<

This is the code I have in lisp

(setq e2 (subst (cons 343 ClGroup)
(assoc 343 e2)
e2 )
)
(entmod e2)

Now to get it to work in Sendcommand

I hate Sendcommand

--
Rob Starz
Rob@stardsign.com
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
ADT Curtainwall Suite
ADT Restroom Suite
**ADTcadPac coming soon**
http://www.stardsign.com/main.htm <
StarDsign cad solution
0 Likes
Message 4 of 5

Anonymous
Not applicable
I'm sure I'm missing something but here goes. Will this work?

ThisDrawing.Utility.SendCommand "(entmod (subst (cons 343 ClGroup) (assoc
343 e2) e2 ))" & vbCrLf

--
Get free software and more at http://www2.stonemedia.com/franko

"Rob Starz" wrote in message
news:8aavil$t2e6@adesknews2.autodesk.com...
> There is a variable in Architectural Desktop Wall entities that is not
> available via ActiveX yet. ADT guys have admitted to leaving access to
this
> out.
>
> So while the entire VBA ap gets all the setting through ActiveX the
> CleanupGroup is not and I have to go through Enget of the dxf code. Now
> when I want to change this variable I need to Entmod the dxf code of the
> wall. PIA but they say it is the only way....for now.
>
> <
> Hi Rob,
> You could use the DXF Code 343 directly under the imp_wall object to
get
> at this. You're right, this should be in the Active X api, sorry!
>
> -Chad
> <<
>
> This is the code I have in lisp
>
> (setq e2 (subst (cons 343 ClGroup)
> (assoc 343 e2)
> e2 )
> )
> (entmod e2)
>
> Now to get it to work in Sendcommand
>
> I hate Sendcommand
>
> --
> Rob Starz
> Rob@stardsign.com
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ADT Curtainwall Suite
> ADT Restroom Suite
> **ADTcadPac coming soon**
> http://www.stardsign.com/main.htm <
> StarDsign cad solution
>
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
I will give this a try on Saturday. Thanks

It is all the """()""""("()) stuff that confuses me. You miss one thing and
it is all shot to hell.

I promise not to delete 3 hours of code anymore.....but it sure felt good to
hit that keyboard hard enought to reboot the system.

--
Rob Starz
Rob@stardsign.com
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
ADT Curtainwall Suite
ADT Restroom Suite
**ADTcadPac coming soon**
http://www.stardsign.com/main.htm <
StarDsign cad solution
0 Likes