.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Define UCS in side database

1 REPLY 1
SOLVED
Reply
Message 1 of 2
KZambaux
354 Views, 1 Reply

Define UCS in side database

Hi,

 

I'm trying to use UCS in side database.

First of all, I don't know if it is possible. I didn't find a post talking about it.

Are there some examples available?

 

I did try the example in help : Define a User Coordinate System (.NET) 

But I don't understand how this can work in side database as there is no ViewportTableRecord.

 

My goal is to be able to move the origin point (and also mirror it) and be able to insert entity and dynamic block in this new coordinates.

I may move the reference several time for different purpose.

It may be not possible. For example, parameter Position in Blockreference is based on WCS coordinates.

So, I don't know how I can convert coordinates to WCS coordinates in side database.

 

Thanks in advance for you help.

Kevin

1 REPLY 1
Message 2 of 2
_gile
in reply to: KZambaux

Hi,

 

User coordinate systems are only used by the AutoCAD editor (points specified within commands or points returned by user prompting), so it is useless in a side database.

You have to transform the entites with Matrix3d instances.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report