Author Topic: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)  (Read 8878 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #15 on: December 10, 2015, 02:03:44 PM »
The nameless entries in Ronjonp's list do have names (but probably lack the name property).
Code: [Select]
(entget (namedobjdict))
=>
(
  (-1 . <Entity name: cae4640>)
  (0 . "DICTIONARY")
  (5 . "28")
  (330 . <Entity name: ca992b8>)
  (100 . "AcDbDictionary")
  (281 . 1)
  (3 . "ACAD_ASSOCPERSSUBENTMANAGER")
  (350 . <Entity name: cae5cc8>)
  (3 . "ACAD_BACKGROUND")
  (350 . <Entity name: cae5908>)
  (3 . "ACAD_CIP_PREVIOUS_PRODUCT_INFO")
  (350 . <Entity name: cae6108>)
  (3 . "ACAD_COLOR")
  (350 . <Entity name: cae4a80>)
  (3 . "ACAD_DETAILVIEWSTYLE")
  (350 . <Entity name: caea048>)
  (3 . "ACAD_FLATSHOT")
  (350 . <Entity name: cae64c8>)
  (3 . "ACAD_GROUP")
  (350 . <Entity name: cabe6d0>)
  (3 . "ACAD_IMAGE_DICT")
  (350 . <Entity name: cae5808>)
  (3 . "ACAD_IMAGE_VARS")
  (350 . <Entity name: cae5888>)
  (3 . "ACAD_LAYOUT")
  (350 . <Entity name: cae4900>)
  (3 . "ACAD_MATERIAL")
  (350 . <Entity name: cae4a40>)
  (3 . "ACAD_MLEADERSTYLE")
  (350 . <Entity name: cae51c8>)
  (3 . "ACAD_MLINESTYLE")
  (350 . <Entity name: cabe710>)
  (3 . "ACAD_PERSUBENTMGR")
  (350 . <Entity name: cae58c8>)
  (3 . "ACAD_PLOTSETTINGS")
  (350 . <Entity name: cae4940>)
  (3 . "ACAD_PLOTSTYLENAME")
  (350 . <Entity name: cae4880>)
  (3 . "ACAD_RENDER_SETTINGS")
  (350 . <Entity name: cae9f48>)
  (3 . "ACAD_SCALELIST")
  (350 . <Entity name: caea448>)
  (3 . "ACAD_SECTIONVIEWSTYLE")
  (350 . <Entity name: caea088>)
  (3 . "ACAD_TABLESTYLE")
  (350 . <Entity name: cae5108>)
  (3 . "ACAD_VISUALSTYLE")
  (350 . <Entity name: cae4c80>)
  (3 . "ACAD_WIPEOUT_VARS")
  (350 . <Entity name: cae5f08>)
  (3 . "AcDbVariableDictionary")
  (350 . <Entity name: cae49c0>)
  (3 . "AcDsDecomposeData")
  (350 . <Entity name: caeb4c8>)
  (3 . "AEC_CLASSIFICATION_SYSTEM_DEFS")
  (350 . <Entity name: cae5588>)
  (3 . "AEC_PROPERTY_SET_DEFS")
  (350 . <Entity name: cae5248>)
)
Some of the entities ("ACAD_ASSOCPERSSUBENTMANAGER" and "ACAD_PERSUBENTMGR") are proxy entities and cannot be deleted.

In BricsCAD copy-pasting the block in a 'clean' drawing works.
I would try that, and check how this new drawing opens in AutoCAD. Then you will know if it is the block or the dictionary entries that are to blame.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #16 on: December 10, 2015, 02:16:00 PM »
Wblocking ('Entire drawing') also works.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #17 on: December 10, 2015, 03:26:41 PM »
Wblocking ('Entire drawing') also works.
I have tried Wblock from Bricscad but I get same problem when open the wblocked DWG in AutoCAD...  :tickedoff:

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #18 on: December 10, 2015, 03:34:51 PM »
Try the drawing in this thread.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #19 on: December 10, 2015, 03:37:17 PM »
Try to Google "BlockPurgePreventer":
Code: [Select]
Dynamic blocks
US 7860691 B2
 Estratto
Tools and techniques for creating and editing a master block definition for a dynamic block, and manipulating a block instantiation of a dynamic block are described. One or more data structures that can be used to implement a dynamic block feature are described
:wideeyed2:

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #20 on: December 10, 2015, 03:49:37 PM »
So the block does seem to be the culprit.
Maybe removing the draworder (AcDbSortentsTable) from the block definition will help?
Code - Auto/Visual Lisp: [Select]

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #21 on: December 10, 2015, 03:54:47 PM »
So the block does seem to be the culprit.
Maybe removing the draworder (AcDbSortentsTable) from the block definition will help?
Code - Auto/Visual Lisp: [Select]
I get nil (Bricscad) then in AutoCAD nothing happen.    :x

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #22 on: December 11, 2015, 02:51:34 AM »
I get nil (Bricscad) then in AutoCAD nothing happen.    :x
(vla-delete) always returns nil. So that is to be expected.
If wblocking combined with the removal of the draworder does not work then I can think of only one other solution: SAVEASR12. :-D

Note that wblocking is effective in the sense that the file size is drastically reduced (from 3.3 Mb to 60 Kb).

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #23 on: December 11, 2015, 10:25:18 AM »
I get nil (Bricscad) then in AutoCAD nothing happen.    :x
(vla-delete) always returns nil. So that is to be expected.
If wblocking combined with the removal of the draworder does not work then I can think of only one other solution: SAVEASR12. :-D

Note that wblocking is effective in the sense that the file size is drastically reduced (from 3.3 Mb to 60 Kb).
Thanks again for your time   :-)
1) if I saveasr12 all is ok, but I would not lose some important >R12 features...  :-(
2) if I delete only "A$C6E506268" block, all is OK (open in AutoCAD is normal)
...
9) it is very strange that AutoCAD takes several minutes to open a 80kb DWG! And I can not recover the problem  :knuppel2:

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #24 on: December 11, 2015, 11:56:42 AM »
News: if I open in AutoCAD (2013) and (after 10 min.) I explode the "A$C6E506268" block AutoCAD hangs for further 10 min... for ever   :tickedoff:

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #25 on: December 11, 2015, 03:43:15 PM »
Have you tried exploding it in BricsCAD, then copy and pasting it into a new drawing in AutoCAD?

ETA: Nevermind, that didn't work either. This one is strange, even more normal cleanup routines for dealing with bricsCAD files aren't fixing this one.
« Last Edit: December 11, 2015, 04:06:31 PM by cmwade77 »

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #26 on: December 12, 2015, 03:41:55 AM »
Have you tried exploding it in BricsCAD, then copy and pasting it into a new drawing in AutoCAD?

ETA: Nevermind, that didn't work either. This one is strange, even more normal cleanup routines for dealing with bricsCAD files aren't fixing this one.
Tested in the full original DWG (where there are other similar block and many other things) I can normally open the DWG in AutoCAD only if the delete fully the block, exploding only not solves. Thanks.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: Drawing with errors, open very slow only in AutoCAD (Bricscad OK)
« Reply #27 on: December 12, 2015, 05:48:59 AM »
After many tests I was able to isolate the only entity responsible but I could not understand where the problem lies.   :tickedoff:
Attached a 50kb dwg with only an hacth that hang AutoCAD:
Code: [Select]
 
;IAcadHatch 5160c160 : TeighaX Interface of an area fill consisting of a pattern of lines
;
; Property values :
;
;   Application (RO) = #<VLA-OBJECT IAcadApplication 0000000019DC5B00>
;   Area (RO) = 1221.06531409624
;   AssociativeHatch = 0
;   color = 256
;   Database (RO) = #<VLA-OBJECT IAcadDatabase 00000000514BB148>
;   Document (RO) = #<VLA-OBJECT IAcadDocument 00000000514C2AB8>
;   Elevation = 9.09494701772928e-013
;   EntityName (RO) = "AcDbHatch"
;   EntityType (RO) = NIL
;   GradientAngle = 2.0943951023932
;   GradientCentered = -1
;   GradientColor1 = NIL
;   GradientColor2 = NIL
;   GradientName = "LINEAR"
;   Handle (RO) = "8080F"
;   HasExtensionDictionary (RO) = 0
;   HatchObjectType = 0
;   HatchStyle = 1
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 00000000514BC1D8>
;   ISOPenWidth = -1
;   Layer = "TRATTEGGIO"
;   Linetype = "BYLAYER"
;   LinetypeScale = 1.0
;   Lineweight = -1
;   Material = "ByLayer"
;   Normal = (0.0 0.0 1.0)
;   NumberOfLoops (RO) = 1
;   ObjectID (RO) = 546829792
;   ObjectID32 (RO) = 546829792
;   ObjectName (RO) = "AcDbHatch"
;   Origin = (0.0 0.0)
;   OwnerID (RO) = 546412976
;   OwnerID32 (RO) = 546412976
;   PatternAngle = 2.0943951023932
;   PatternDouble = 0
;   PatternName (RO) = "GOST_WOOD"
;   PatternScale = 8.0
;   PatternSpace = 8.0
;   PatternType (RO) = 1
;   PlotStyleName = "ByLayer"
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 00000000195C9798>
;   Visible = -1
;
; Methods supported :
;
;   AppendInnerLoop (1)
;   AppendOuterLoop (1)
;   ArrayPolar (3)
;   ArrayRectangular (6)
;   Copy ()
;   Delete ()
;   Erase ()
;   Evaluate ()
;   GetBoundingBox (2)
;   GetExtensionDictionary ()
;   GetLoopAt (2)
;   GetXData (3)
;   Highlight (1)
;   InsertLoopAt (3)
;   IntersectWith (2)
;   Mirror (2)
;   Mirror3D (3)
;   Move (2)
;   Rotate (2)
;   Rotate3D (3)
;   ScaleEntity (2)
;   SetPattern (2)
;   SetXData (2)
;   TransformBy (1)
;   Update ()

(-1 . <Entity name: 2097f5e0>)
   (0 . "HATCH")
   (5 . "8080F")
   (330 . <Entity name: 209199b0>)
   (100 . "AcDbEntity")
   (67 . 0)
   (410 . "Model")
   (8 . "TRATTEGGIO")
   (100 . "AcDbHatch")
   (10 0.0 0.0 9.09494701772928e-013)
   (210 0.0 0.0 1.0)
   (2 . "GOST_WOOD")
   (70 . 0)
   (71 . 0)
   (91 . 1)
   (92 . 5)
   (93 . 7)
   (72 . 4)
   (94 . 4)
   (73 . 0)
   (74 . 0)
   (95 . 10)
   (96 . 5)
   (40 . 8.66605524692759e-015)
   (40 . 8.66605524692759e-015)
   (40 . 8.66605524692759e-015)
   (40 . 8.66605524692759e-015)
   (40 . 8.66605524692759e-015)
   (40 . 15.3604729579)
   (40 . 15.3604729579)
   (40 . 15.3604729579)
   (40 . 15.3604729579)
   (40 . 15.3604729579)
   (10 27625.761678308 11970.3073935879 0.0)
   (10 27627.3956176882 11971.4455596444 0.0)
   (10 27628.7105224969 11972.6019625011 0.0)
   (10 27629.6470908795 11973.7350579276 0.0)
   (10 27630.1852955288 11974.8057212035 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 5)
   (73 . 0)
   (74 . 0)
   (95 . 21)
   (96 . 15)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 7.19664967541)
   (40 . 7.19664967541)
   (40 . 7.19664967541)
   (40 . 12.7361893378)
   (40 . 12.7361893378)
   (40 . 12.7361893378)
   (40 . 19.9881698388)
   (40 . 19.9881698388)
   (40 . 19.9881698388)
   (40 . 30.9811372399)
   (40 . 30.9811372399)
   (40 . 30.9811372399)
   (40 . 30.9811372399)
   (40 . 30.9811372399)
   (40 . 30.9811372399)
   (10 27630.1852955288 11974.8057212035 0.0)
   (10 27629.9514567419 11976.405815139 0.0)
   (10 27629.724864137 11977.9563255617 0.0)
   (10 27629.4643734572 11979.7387909117 0.0)
   (10 27629.0519150466 11982.5611293544 0.0)
   (10 27628.5958866549 11985.6816051148 0.0)
   (10 27628.3939288876 11987.0635460771 0.0)
   (10 27627.9735686082 11989.9399548221 0.0)
   (10 27627.4700806643 11993.3851831283 0.0)
   (10 27627.199944863 11995.2336474505 0.0)
   (10 27626.6055047114 11999.3012364801 0.0)
   (10 27625.8091286848 12004.750616636 0.0)
   (10 27625.399206085 12007.5556032561 0.0)
   (10 27625.0436280408 12009.9887251496 0.0)
   (10 27624.6211643708 12012.8795268219 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 5)
   (73 . 0)
   (74 . 0)
   (95 . 12)
   (96 . 6)
   (40 . 40.2918835887)
   (40 . 40.2918835887)
   (40 . 40.2918835887)
   (40 . 40.2918835887)
   (40 . 40.2918835887)
   (40 . 40.2918835887)
   (40 . 51.1532513847)
   (40 . 51.1532513847)
   (40 . 51.1532513847)
   (40 . 51.1532513847)
   (40 . 51.1532513847)
   (40 . 51.1532513847)
   (10 27624.6211643708 12012.8795268219 0.0)
   (10 27621.792737246 12011.2465336601 0.0)
   (10 27618.9643101213 12009.6135404982 0.0)
   (10 27616.1358829966 12007.9805473363 0.0)
   (10 27613.3074558718 12006.3475541745 0.0)
   (10 27610.4790287471 12004.7145610126 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 5)
   (73 . 0)
   (74 . 0)
   (95 . 12)
   (96 . 6)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 180.700703637)
   (40 . 180.700703637)
   (40 . 180.700703637)
   (40 . 180.700703637)
   (40 . 180.700703637)
   (40 . 180.700703637)
   (10 27610.4790287471 12004.7145610126 0.0)
   (10 27607.6506016223 12003.0815678508 0.0)
   (10 27604.8221744976 12001.4485746889 0.0)
   (10 27601.9937473728 11999.8155815271 0.0)
   (10 27599.1653202481 11998.1825883652 0.0)
   (10 27596.3368931233 11996.5495952034 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 5)
   (73 . 0)
   (74 . 0)
   (95 . 12)
   (96 . 6)
   (40 . 147.521650494)
   (40 . 147.521650494)
   (40 . 147.521650494)
   (40 . 147.521650494)
   (40 . 147.521650494)
   (40 . 147.521650494)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (40 . 169.839335841)
   (10 27596.3368931233 11996.5495952034 0.0)
   (10 27596.3368931233 11990.1482620089 0.0)
   (10 27596.3368931233 11983.7469288144 0.0)
   (10 27596.3368931233 11977.3455956199 0.0)
   (10 27596.3368931233 11970.9442624255 0.0)
   (10 27596.3368931233 11964.542929231 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 5)
   (73 . 0)
   (74 . 0)
   (95 . 12)
   (96 . 6)
   (40 . 1.28772369648847e-013)
   (40 . 1.28772369648847e-013)
   (40 . 1.28772369648847e-013)
   (40 . 1.28772369648847e-013)
   (40 . 1.28772369648847e-013)
   (40 . 1.28772369648847e-013)
   (40 . 31.5614303123)
   (40 . 31.5614303123)
   (40 . 31.5614303123)
   (40 . 31.5614303123)
   (40 . 31.5614303123)
   (40 . 31.5614303123)
   (10 27596.3368931233 11964.542929231 0.0)
   (10 27599.3286093758 11964.0921137851 0.0)
   (10 27603.0655166295 11964.0755553403 0.0)
   (10 27607.3224801509 11964.5287303519 0.0)
   (10 27611.7567478733 11965.4151484516 0.0)
   (10 27616.0431599051 11966.6407553942 0.0)
   (97 . 0)
   (72 . 4)
   (94 . 4)
   (73 . 0)
   (74 . 0)
   (95 . 10)
   (96 . 5)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 0.0)
   (40 . 15.3604729588)
   (40 . 15.3604729588)
   (40 . 15.3604729588)
   (40 . 15.3604729588)
   (40 . 15.3604729588)
   (10 27616.0431599051 11966.6407553942 0.0)
   (10 27618.6508251572 11967.3863609527 0.0)
   (10 27621.2005420448 11968.2660732655 0.0)
   (10 27623.5972259307 11969.2525571408 0.0)
   (10 27625.761678308 11970.3073935879 0.0)
   (97 . 0)
   (97 . 0)
   (75 . 1)
   (76 . 1)
   (52 . 2.0943951023932)
   (41 . 8.0)
   (77 . 0)
   (78 . 3)
   (53 . 3.66519142918809)
   (43 . 11036.5378236968)
   (44 . 3895.28475605179)
   (45 . -24.0)
   (46 . 41.5692193816531)
   (79 . 2)
   (49 . 80.0)
   (49 . -16.0)
   (53 . 3.66519142918809)
   (43 . 11042.3942301573)
   (44 . 3917.14116251234)
   (45 . -24.0)
   (46 . 41.5692193816531)
   (79 . 4)
   (49 . 48.0)
   (49 . -12.0)
   (49 . 24.0)
   (49 . -12.0)
   (53 . 3.66519142918809)
   (43 . 11055.1788398482)
   (44 . 3942.99756897289)
   (45 . -24.0)
   (46 . 41.5692193816531)
   (79 . 2)
   (49 . 80.0)
   (49 . -16.0)
   (47 . 1.19191486519316)
   (98 . 2)
   (10 27662.7636273437 11863.4509197533 0.0)
   (10 27662.7636273437 11863.4509197533 0.0)
   (-3
      (
         "_APP169C2"
         (1070 . 5)
      )
      (
         "_APP169C3"
         (1070 . 2)
      )
      (
         "ACAD"
         (1010 0.0 0.0 0.0)
      )
   )
)