News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Xref and visualize mode rendering.

Started by Bizon, May 11, 2025, 11:51:24 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Bizon

Good morning,

I have a problem with xref links in the head drawing. After changing in the xref file and after reloading (reload in block palette) the drawing updates but only in wireframe and opengl mode. In visualize mode the changes do not happen, only after reloading the main file there are changes.
This happens on every drawing I have. Maybe the nvidia card settings are wrong?
Thanks
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Andy H

Quote from: Bizon on May 11, 2025, 11:51:24 PMthe drawing updates but only in wireframe and opengl mode. In visualize mode the changes do not happen,

I'm guessing you mean native wireframe updates OK. Visualize wireframe / draft keeps objects in memory to speed thing up. especially useful for large wireframe drawings, and regular draft render. It is a bit like caching.  What is needed is coding a direct link, from the xref reload option to the object held in memory / cache.  Native wireframe does not seem to hold these objects in the same way as Vizualize does, which is why the xref updates correctly in native mode.

There is a way to disable this visualize behaviour. But first I need to know - Are you using Native wireframe, or Visualize wireframe. 

Bizon

I use the native wireframe mode which as you write updates well.
In rendering draft mode im works on visualize mode.
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Andy H

#3
OK.  I'm not a programmer, so what is written below, is my interpretation based on tests.

The visualize behaviour I mentioned above, is controlled in a setting via the Options menu - Visualize engine setup.  Clicking the Miscellaneous - advanced button,  There is a setting called 'Keep data until drawing closed'.  This appears to tell Visualize to keep some things in memory for quick rendering.

Turning it off should allow draft render to operate on the new / reloaded xref.  However this can come with a cost. Depending on the size of the drawing, rendering time will increase.  Essentially, with turning it off, visualize has to reload the objects into rendering memory every time one goes into draft mode.

On smaller drawings or drawings consisting mainly of box type objects,  One can leave 'Keep data' turned off, and live with any alight increase in render time. Which on drawings with not too many curved surface, may be only a few seconds.  On larger drawings with lots of curved surfaces, it may be better to leave it turned on.  The only way to know is to test it on ones own drawings.

Example test.  X ref drawing is just three boxes boolean added.  Main drawing array copy of spheres (1024 of them). + the inserted xref.  ACIS at 90. This ensures the drawing is slow enough for a good rendering test.  NOTE This is an extreme test, just to show the effects,  I doubt anyone normally draws 1024 spheres.

With the setting Turned ON.
Initial draft render (including loading graphics into render memory)  168 seconds  [Spheres with a high ACIS setting, slow down TC]
Back to wireframe.
Subsequent rendering (quicker as objects already held in render memory)  18 seconds.

With the setting turned OFF
Initial draft render (including loading graphics into render memory)  125 seconds
Back to wireframe
Subsequent rending (visualize has to reload graphics every time its rendered).  128 seconds

Fiddling with the setting. (initially, the setting is turned on, xref not yet altered)
Initial draft render (including loading graphics into render memory)  126 seconds
Back to wireframe.
Subsequent rendering (quicker as objects already held in render memory)  19 seconds. [this was just to test it]
Back to wireframe.
In the original xref drawing, used facet edit to change  the object.,  saved file.

Switch back to main drawing.
Reload the xref (wireframe shows fine but visualize shows original object because its still in render memory).
Options menu - Visualize engine setup. Miscellaneous - advanced button,  Turn OFF keep data ...... Click apply and then OK.
One can draft render to check the xref has updated, but it should not be necessary (I did not bother rendering to test it).
Options menu - Visualize engine setup. Miscellaneous - advanced button,  Turn ON keep data ...... Click apply and then OK
Draft render (slower due to loading data into memory).  134 seconds  [xref displays correctly in draft render].
Subsequent rendering (quicker as objects already held in render memory) 25 seconds.

Hopefully the above shows how the setting affects visualize.  Up to the user, whether its quicker to save the file, close and reopen (which reloads the xref).  or if quicker to fiddle with the setting.  Either way the inital render after opening or fiddling will take longer. subsequent renders will be shorter (assuming the setting has been turned ON).

There may be other ways to force visualize to clear the render memory. But I'll leave that to others.

OH... forgot to mention.  Anyone using Visualize wireframe mode.  there is a slight difference to the above procedure.  Which if not done correctly, can result in the xref not showing at all in draft render.  But that's for another time.  This is about native wireframe.

Bizon

Andy thanks, it works. When you disable this option the visualize render updates every time you switch between native <-> visualize.
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Bizon

I still have a problem loading material on a solid that was imported as an Xref block.
I do it like this,
I select the material of the object in the source file, then import the Xref and select the material for it by block.
The problem is that the materials are not imported correctly, I noticed that when I open the file and add a second object with the same material it is ok. If there is a different material then the object is gray.


Is there any way for Xref to properly load the selected material?
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Andy H

#6
Whilst I know a little about visualize,  I know only the basics of Xref's.  So really need to leave this to the experts.  Maybe Alvin, John or Dean will know know more (I don't think Nikki uses 2024).

As a test, I set 2024 to RedSDK, created object, assigned custom material with custom name. saved file.  Started new drawing, inserted Xref, it rendered fine in the correct custom colour, even though the material was not in the material palette.

Tried the same in Visualize and Turbolux, and nowt happened (nowt is the North UK equivalent of nada).  The only way I could get the correct custom colour to show, was to create it in the TC Database section. then assign it to the active drawing.  It appears that the inserted xref is assigning the material name, but visualize and turbolux are not reading any of the material properties.  Whereas RedSDK (and probably lightworks) does.

If the original xref drawing is created using a standard material from the database. For example Metal/Copper.  Then xref'd into the main drawing.  Then Metal/Copper is assigned from the database into the active drawing area. (It does not have to be assigned to any objects),  it will then render correctly.

Like I say.  I've no idea if there is a simpler solution.  And doing the workaround above, would be a real PITA

Alvin Gregorio

#7
This is what I get to work for me (yes... I consider it a workaround):
  In the Render Manager of the XREF Destination Drawing, Copy the Materials of the XREF Source Drawing listing into the XREF Destination Drawing listing.

of course, Reload the XREF Block after Copying/Pasting the Materials, or (Visualize) Regen, or simply go to Wireframe then back to Draft Render.
____
I'm not sure if both or either is necessary, but I also have my Visualize Engine sub-settings set as shown below.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Bizon

Thanks for your help, TC keeps surprising me with its complexity.
I added materials in render manager and it is ok.
Now I'm wondering how to manage materials so I can change them easily.I care about this because I am creating a catalog of 10 products, I do the assembly using Xref. The number of all drawings/parts is about 200, some parts on common for a product. At a later time, I would like to make from these 10 assemblies one image showing the entire range.
The idea is that I don't have to open each drawing individually, but be able to change the material for all of them. As far as I can see, once the material is copied to the active drawing, it loses the connection and is already independent.
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Andy H

#9
Quote from: Bizon on May 19, 2025, 12:51:32 AMAs far as I can see, once the material is copied to the active drawing, it loses the connection and is already independent.

That is correct, under the current system one would need to remember to change the material in both the source drawing, and destination drawing, if the materials were edited.  At least until the programmers get round to repairing the Xrefs materials, when using visualize.

I don't know if this is repaired in 2025,  I applied for the trial, but not holding my breath.  Maybe someone who has purchased 2025 can test it.  Or maybe one of the beta testers could check.

I have not done extensive tests on the following, as I had no intention of using it,  But.  There is an option to change back to how TC worked many years ago.  It is described near the bottom of this help page called shader sets.

Roughly how it works is.  After changing the setting and restarting TC.  One opens or creates a source file, and assigns a material. this is auto copied to the active drawing,  (it may not show immediately in active drawing, but that's of no consequence). Save file.  In a new file or destination file, one assigns the same material to an object or assign it to the xref'd part.  Because of changing the setting, the active drawing area, and database are directly linked.  so editing the material in the source, whether in the active drawing or database, results in a global change. and will directly affect the destination.

For visualize, one needs to remember to assign the same material in both the source and destination,  Not a big deal.

Caution.  Because both the active drawing and database are global. If you do a lot of testing with material,  I'd suggest setting up another database folder called tests.  and put materials for testing in that.  that way you don't alter the original database material.  For the materials used in the actual project (source and destination). I'd set a new folder in the database, just for the materials used in the project.  again keeping the original database material intact. 

I'd suggest doing ones own tests to see if its suitable,  But like I say, create a new folder in the database, and do testing in that, to preserve the original material.


###  Edited ###  When the whole project is done and dusted (completed). you may want to consider, un-ticking the shader set box, and going back to using active drawing, as it is at present. So material changes only affect one drawing.  ### End Edit ###


Bizon

Again, I have to thank you.

I read the post and the turbocad docs on shaders and materials... I chatted a bit with copilot, and finally tested the global materials database.
This is what I was looking for, I have to remember not to litter the material base. It's best to create new materials for your projects and keep an eye on not making a mess of the material base.
In my opinion, this is a good option for conscious users, and those who work only on their projects internally in company
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Bizon

#11
I would still like to ask what could be the reason that I cannot give material to some solids? They just don't want to accept it, they are still gray. I tried adding them to a new drawing, copying them, exploding them and nothing helps.
In render manager I have added the material I want to use.

Edut: I wanted to add that this time it is not about xref mode

Edit2: when I draw the new solid again, the materials work
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

John R

I gave a file with a dozen XRef's a try in TurboCAD 2025. I'll pass on Visualize; it still loses parts. LightWorks Draft and Quality (47+ minutes) worked great.

John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Bizon

Okay, copilot helped me solve the problem. You need to remove the facet material.
I will write right away how to do it:
Turn on the Facet Edit tool --> Select the solid and all available facets (CTRL + A ) --> Go into properties --> Material --> And select None.
After that we have the possibility to assign our material by default in render manager.


I hope that in the end I will help someone.
Best regards
TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Alvin Gregorio

Quote from: Bizon on July 13, 2025, 08:30:51 AMOkay, copilot helped me solve the problem
Was that Microsoft's Copilot, that now comes with Windows?
Or TurboCAD's DOC: Copilot?

I am finding Microsoft's Copilot on my system very good at providing me assistance and instructions on TurboCAD.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Bizon

TurboCAD Platinum 2024 / Win 11 Pro 64bit / ThinkPad P17 / Xeon W10855M 6x2.8GHz / 64GB RAM /  Quadro RTX 5000

Andy H

Quote from: Bizon on July 13, 2025, 08:30:51 AMOkay, copilot helped me solve the problem. You need to remove the facet material.


Facet material.  Whilst one can apply facet material deliberately (facet tool, or material 'drag on facet' ticked.  it can also happen accidentally if options menu - Advanced preferences, Transfer materials from operand is ticked.  I always make sure that setting is not ticked.

Alvin Gregorio

#17
Quote from: Andy H on July 13, 2025, 10:18:11 AMI always make sure that setting is not ticked.
I would agree that a user's default should be to have that option not ticked.
But there are times when one would benefit from temporarily having it ticked.  Such as applying a different material within the debossed result of 3D Subtraction of 3D lettering from a 3D entity (which can achieve a cool look).

Particularly so in Deluxe, where we don't have the Facet Editor nor the Material_"Drag_on_Facet" option.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)