Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tranparency in layer command

10 REPLIES 10
Reply
Message 1 of 11
dkoppenol
887 Views, 10 Replies

Tranparency in layer command

I have tried to readout the status of the variable "transparency" within the layer command.

There is no information on the dxf reference guide http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-7a51.htm

and no examples in the online books of Autodesk.

So "i need some help from my friends" in this discussion group.

A clear question:

How can i readout the transparency from a xref within a layout?

 

Thanks for your time!!

 

Dolf

10 REPLIES 10
Message 2 of 11
SomeBuddy
in reply to: dkoppenol

Hi,

 

Most probably, being quite recent, this new feature is not exposed through DXF and ActiveX. It is possible that you will have to use some heavier interface in order to do this, like .NET or ARX.

 

HTH

Message 3 of 11
dkoppenol
in reply to: dkoppenol

Thanks for your suggestion, but there must be a possibility to read this new variable with good old plain Autolisp.

It could be a new way to make plots!

 

:-)olf

Message 4 of 11
SomeBuddy
in reply to: dkoppenol

Now I see what you are talking about and I think that your answer is here:

 

http://autodesk.blogs.com/between_the_lines/2010/03/autocad-2011-feature-tips-tricks-transparency.ht...

 

Regards

Message 5 of 11
dkoppenol
in reply to: dkoppenol

Thanks! That helps me a great deal.

Unfortunate there are no variables to read out.

The blob speaks of a default CETRANSPARENCY when creating a new object.

I would like to read out the transparency of a exciting layer with his personal transparency number.

I tried to read out the transparency of the layers of a xref.

 

Perhaps there is more in the treasure-house of Autodesk but they (and we) don't know it!!

Dolf

Message 6 of 11
SomeBuddy
in reply to: dkoppenol

Most probably the transparency information is burried somewhere in a dictionary attached to the layer object. I don't have the time to dig for it right now, but maybe somebody else could help you with this, or maybe you want to do it yourself.

 

Regards

Message 7 of 11
dkoppenol
in reply to: SomeBuddy

I have tried to dig in (deep!!) but have not find it.

Perhaps Autodesk uncloakes this secret in Acad 2012!

I wil build something myself.

 

Thank you.

Dolf

Message 8 of 11
SomeBuddy
in reply to: dkoppenol

I am sorry I can't help you with this.

Message 9 of 11
artc2
in reply to: SomeBuddy

For layers, the transparency value is stored in the LayerTableRecord's xdata under the regapp "AcCmTransparency".

Message 10 of 11
dkoppenol
in reply to: artc2

Do you mean the Extended Data in dxf-format?

 

Regards

Dolf

Message 11 of 11
artc2
in reply to: dkoppenol

Yes, that's what the dxf docs call it.

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

Post to forums  

Autodesk Design & Make Report

”Boost