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

How to create a region

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
mecoman6GF27
193 Views, 3 Replies

How to create a region

Hi everyone.

I'm trying to create a region from a simple circle but when I type "myRegionColl = Region.CreateFromCurves(acDBObjColl)" I get this error: "CreateFromCurves is not a member of Region". What do you think is the problem?

Thanks bye.

3 REPLIES 3
Message 2 of 4
_gile
in reply to: mecoman6GF27

Hi,

 

What is the type of Region in your code? It should be: Autodesk.AutoCAD.DatabaseServices.Region.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 4

You are probably not using the correct Region type {System.Drawing.Region maybe?) , but you really should post your code so that others can identify the exact cause of the problem.

 

Don't expect those reading your question to guess what your code is doing. 

Message 4 of 4
mecoman6GF27
in reply to: mecoman6GF27

Hi.

The solution was the one proposed by _gile.

Thank you very much, bye.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report