Author Topic: command "region"  (Read 3522 times)

0 Members and 1 Guest are viewing this topic.

csgoh

  • Newt
  • Posts: 176
command "region"
« on: October 09, 2004, 11:08:22 AM »
Hi there;
I have a lisp code using the command "region". However, after picking a closed polyline, it gives me an error saying that it is a intersecting loop.
By entering the command at prompt also gives the the same error. But the polygon example in the dwg is not intersecting except that it is extremely close; about 0.0001 mm. Pls help
Thanks



csgoh

CADaver

  • Guest
command "region"
« Reply #1 on: October 09, 2004, 03:49:38 PM »
Make sure you don't have two vertices occupying the same point.

csgoh

  • Newt
  • Posts: 176
command "region"
« Reply #2 on: October 10, 2004, 03:52:21 AM »
LWPOLYLINE  Layer: "REGION"
                            Space: Model space
                   Handle = 25
            Closed
    Constant width    0.0000
              area   25.3057
         perimeter   75.6562

          at point  X=  39.2596  Y=-4876.9416  Z=   0.0000
          at point  X=  46.5600  Y=-4877.8600  Z=   0.0000
          at point  X=  57.6100  Y=-4878.7600  Z=   0.0000
          at point  X=  74.2000  Y=-4885.7500  Z=   0.0000
          at point  X=  62.4140  Y=-4880.7840  Z=   0.0000
          at point  X=  62.4140  Y=-4877.5260  Z=   0.0000
This is the polygon I extracted out and there are no 2 vertices yhe same.

DEVITG

  • Bull Frog
  • Posts: 481
region
« Reply #3 on: October 10, 2004, 11:42:09 AM »
I did a test with your data , and it give me no error.
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

Anonymous

  • Guest
command "region"
« Reply #4 on: October 11, 2004, 08:37:02 AM »
After reading your post, I tested again but it still doesn't work in acad2002 win xp pro version 2002 sp1. however tested in acad 14 also does not work but in autocad map 2004 running xp pro service pack 1, the command region is ok. it's puzzling??

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
command "region"
« Reply #5 on: October 11, 2004, 09:11:34 AM »
The whole issue may be the result of your video card and/or driver.

The thing about AutoCAD is that MOST of the graphical interaction is reported from the display window. For example, try creating a closed polygon zoom into one corner of it making sure that part of the polygon is not in the display window. Then try to hatch the polygon. It will fail because the entire object is not visible in the screen.
The issue with this closed polyline could be the exact same scenario, only the program is picking up the points as being in the exact same place. They are after all only 0.0000999 apart. Not sure what you are trying to accomplish here, but that is mighty small.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

csgoh

  • Newt
  • Posts: 176
command "region"
« Reply #6 on: October 12, 2004, 06:00:43 PM »
I have also tried the command region using acad2005 with part of the closed polygon hiddden, and it managed to extract a region. So partly hidden objects should not be the problem. I know that when you hatch or use bpoly on partly hidden objects will give you an error.
The most puzzling part of it is that even typing the command region at command prompt gives errors in acad14 and acad2002 but not acad2004 and acad 2005. My main issue is why different results and not whether the lines created are extremely close apart.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
command "region"
« Reply #7 on: October 12, 2004, 06:04:20 PM »
Did you try it on the same computer or different computers
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

csgoh

  • Newt
  • Posts: 176
command "region"
« Reply #8 on: October 14, 2004, 07:34:09 PM »
acad14, acad02 and acad05 are in the computer. acad04 in another one.