DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Symbol Load Error Messge when opening file

Started by Robert Willis, February 16, 2015, 08:07:17 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Robert Willis

I am getting a symbol error message complaining that the symbol file cannot be found every time I open the drawing. I am running DesignCAD 3D MAX Version 24.1. and was working on some symbols in the file and used the ZOOM command to make them bigger. Later on I deleted the symbol that was re-sized with the zoom command and then the error messages started to appear.

Does anyone know how to get the message to go away?

prl

#1
Sounds like a missing external reference tag.  Basically the insertion entity is in the database but it can't find the file.  We need to kill the empty insertion entity.

So, try the special macro below

but first

Make backups, inspect the results, work with test files, etc. . . . . protect your work

'program:  k26t1.d3m  (kill/remove missing external symbol reference from entity database)

'2/17/2015 - forum topic http://forum.designcad.com/index.php?topic=6104

sys(80) = 0

for i = 1 to sys(9)
    getattr i, type
    if type = 26 then 'a symbol or a block
       entity i
       sys(1) = 0 'point buffer not needed
       if sys(296) = 1 then 'external symbol
          bname$ = Sys$(296) 'name will be empty for failed to load (missing) external reference files
          if bname$="" then
             Message "Missing external reference file", sys$(1)
             putattr i, type, 1 'add to selection
          endif             
       endif
    endif
next i

if sys(80)> 0 then
   precision 0
   count = sys(80)
   >erase
   {
   }
   Message  count, "missing external reference file entitites found and deleted from drawing"
endif

End


edit: I attached a sample file that will give those error messages when loading.  Presumably that is what you are discussing.

DrollTroll

Check the Tools/Purge Unused Blocks command. If it's not grayed-out, run it, save the drawing (perhaps under a new name), then close and re-load it. Any better?
25 years with DesignCAD

prl

Quote from: DrollTroll on February 17, 2015, 11:02:18 AM
Check the Tools/Purge Unused Blocks command. If it's not grayed-out, run it, save the drawing (perhaps under a new name), then close and re-load it. Any better?

Dt, doesn't work on the sample file I attached.  Though RW's file may be different, I was just guessing at the problem he is experiencing.

DrollTroll

You're right, doesn't work. Looks like your macro is the best solution for this.

DT
25 years with DesignCAD

prl

#5
Quote from: DrollTroll on February 17, 2015, 11:31:32 AM
You're right, doesn't work. Looks like your macro is the best solution for this.

Dt, on a separate possible bug or DC weirdness, on my sample file with missing xrefs, if you hit "Skip" button each time, why does DC ask me the same questions twice about the same missing symbols?  Look at the file names when the missing xref messages appear.

Seems to me DesignCAD is loading the drawing twice, or at least cycling the database twice when loading.   Probably a major slowdown when loading large drawings.

Just my machine/DC?   Anyone else care to load my sample drawing in reply #2 and tell me if they notice DC cycling the database twice.

samdavo

Absolutely it cycles twice!
and that goes for both V22 or V24 (2 cents)

Dr PR

#7
On really large 3D drawings I can see the program redraw each window twice - I have reported this elsewhere.

With a 250 Mbyte drawing it can take 4-5 seconds to redraw a window in Wireframe mode. If four windows are open that sums up to 30-40 seconds waiting while it redraws, redraws, redraws, redraws, redraws, redraws, redraws, redraws ...

After this initial spasm of multiple redraws it settles down to a single redraw until I render a window with Gouraud OpenGL (all other windows Wireframe).

Then, when I switch back to Wireframe in the one window the program becomes spastic again. redrawing each window twice - even though the view in the other three windows has not changed (still Wireframe).

If this wasn't bad enough, if Point Select mode is activated and objects are selected, each window is redrawn four times! Redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points, redraw Wireframe, redraw Wireframe with points...! That's a minute and a half waiting every time I switch from shaded view to Wireframe!

This has caused me to use the program defensively. First, while the window is shaded, disable Point select mode. Then open the Layers dialog and change the active layer to an empty layer. Then disable all other layers. Close the Layers dialog and change to Wireframe view. The program doesn't go spastic. Then open the layers dialog and select the layers to be visible. Close the dialog and each window redraws only once. It's a lot more work but MUCH faster than allowing the program to go its spastic way.

This is not new. The program has had spastic repeating displays since V18 or V19. My hope is that after RedSDK installation is complete all of this old spastic code will go away. That's one of the reasons I have welcomed the RedSDK development - my complaints about redundant displays have fallen on deaf ears for several years now. Of course it may not change, and then it may take 20-30 minutes to switch from shaded to Wireframe view.

Phil
DesignCAD user since 1987

prl

#8
Using the typical four view DesignCAD tiling (new sample file attached this post), I can definitely see the problem Phil is describing when loading.  DesignCAD first loads and displays the four windows (asking for the missing files one time each), then it switches and blanks out the main view window and then again cycles or reads from disk the drawing database asking the same questions.

A movie - Multiple regens while loading a DesignCAD drawing with missing Xrefs and standard 4 view tiling

(In at least one of my tests it did this blanking out of the main view but NOT while I was making the movie, go figure. )

Robert Willis

Thanks !!!!! The macro worked like a charm and the file will now open without errors.