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

assign color to a wall ?

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
226 Views, 4 Replies

assign color to a wall ?

How do I give an ADT wall a color without putting it on a certain layer ?
have tried (vlax-put-property wallobject 'Color 0)
I get:
error: lisp value has no coercion to VARIANT with this type: 0

/Dan
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Dan,

works fine here. is the WALLOBJECT a VLA Object?

--
-------------------------------------------------------------------------
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
!!!! DormerX out in Sept !!!!
http://www.stardsign.com/main.htm
"Dan Johansson" wrote in message
news:3B857A76.2070909@student.vxu.se...
> How do I give an ADT wall a color without putting it on a certain layer ?
> have tried (vlax-put-property wallobject 'Color 0)
> I get:
> error: lisp value has no coercion to VARIANT with this type: 0
>
> /Dan
>
Message 3 of 5
Anonymous
in reply to: Anonymous

Hmmm...It doesn't work for me either. I get the same error. However, it
works fine with non-aec objects. Now what's really frying my brain is that
I can do this successfully:

(vla-put-StyleName Obj newStyle)

That code runs just fine with walls, windows, and doors.
--
Bobby "Confused" Jones
Message 4 of 5
Anonymous
in reply to: Anonymous

Ok...shot me....I tried it on an actual AecObject.....I get an error also.
I tried (vla-put-color.....) also and error.

I tried it in VBA and no problems. I am guessing that there is something
that VLISP is being locked out of by the AecObject.????????

--
-------------------------------------------------------------------------
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
!!!! DormerX out in Sept !!!!
http://www.stardsign.com/main.htm
"Bobby Jones" wrote in message
news:A9296004A4252EC55D3CFE2E451CCEB2@in.WebX.maYIadrTaRb...
> Hmmm...It doesn't work for me either. I get the same error. However, it
> works fine with non-aec objects. Now what's really frying my brain is
that
> I can do this successfully:
>
> (vla-put-StyleName Obj newStyle)
>
> That code runs just fine with walls, windows, and doors.
> --
> Bobby "Confused" Jones
>
>
>
Message 5 of 5
Anonymous
in reply to: Anonymous

It's a good thing I'm switching over to VBA 🙂
--
Bobby C. Jones

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

Post to forums  

Autodesk Design & Make Report

”Boost