News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Setting Info Box Name field

Started by RDBarthel, May 23, 2026, 07:39:24 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

RDBarthel

How do I set the "Name" field in the Information box?

I've just gone through the step to create a solid. Now I try these steps

   >PointSelect
    {
     <Type 1
     <PointXYZ [x1, y1, z1]    ' A point on the solid
    }
    getselect 1, a
    entity a
    Sys$(300) = "Cap strip"

But the value doesn't show up.

When I put that value in the Name field, a subsequent macro gets the value from Sys$(300). Putting a value INTO Sys$(300) doesn't seem to work.
Is there another set I must take?

Rob S

This parameter is not marked as read only in the documents that I have, so theoreticaly it should work.

I was hoping one of our macro gurus might address the issue....

If nothing happens soon, I will try to do some testing myself.
User since forever

RDBarthel

Thank you for your thoughts on this. I hope they do pick up on it,

DrollTroll

*** Thread Necromancy Spell Successful! ***

The problem you're running into is that a solid is comprised of multiple objects. When you use 'GetSelect 1, ent', you're only obtaining entity info for the first object in the solid. Because you've only changed the name for that one object, the Info Box, when you select the solid, doesn't know which name to display. If you click on the 'Details' icon in the Info Box, you can cycle through the solid's components and see which one atually changed.

What you need to do is check how many items are actually selected, and cycle through each of them and apply the new name to them all.

I successfully tested the attached code with a box solid, but it should work on any 'classic' solid. SolidSurface entities may require some additional refinement...

25 years with DesignCAD