How to create a region

How to create a region

mecoman6GF27
Advocate Advocate
539 Views
3 Replies
Message 1 of 4

How to create a region

mecoman6GF27
Advocate
Advocate

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.

0 Likes
Accepted solutions (1)
540 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant
Accepted solution

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

0 Likes
Message 3 of 4

ActivistInvestor
Mentor
Mentor

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. 

0 Likes
Message 4 of 4

mecoman6GF27
Advocate
Advocate

Hi.

The solution was the one proposed by _gile.

Thank you very much, bye.

0 Likes