Bruce Walker

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 68 total)
  • Author
    Posts
  • in reply to: Text rotation in labels #4834

    Bruce Walker
    Participant

    The text is still orienting correctly within the context of the label – it’s the label itself that is rotated. You will need to use the LABEL_ROTANGLE (I think) to always keep the text horizontal. Haven’t looked into it myself, but that’s where I’d start.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: How to display Object Attributes in 2D Viewport #4777

    Bruce Walker
    Participant

    Roman,

    You would create this as a Label subtype, as labels can be attached to objects.

    You create your ‘target’ using LINE2, CIRCLE2, and POLY2, as you would any 2D object.
    You create your text items using the TEXT2 command (or RICHTEXT2 – but from what you’ve shown, multiple TEXT2 lines should be enough).
    You get your data items using the REQUEST command, which can query any parameter in the associated object. E.g. to do one line item:

    r = REQUEST("ASSOCLP_PARVALUE", "building_type_parameter", name_or_index, type, flags, dim1, dim2, building_type)
    
    STYLE 'txtStyle'
    TEXT2 0, 0, building_type

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Text rotation in labels #4774

    Bruce Walker
    Participant

    Here is some sample code I find works. It also accounts for view rotation. ‘txt_font’, ‘txt_size’ and ‘txt’ are parameters:

    DEFINE STYLE 'txt1Style' txt_font, txt_size, 5, 0
    
    !View rotation angle
    rrr = REQUEST ("View_Rotangle", "", angleViewRot)
    totRot = (SYMB_ROTANGLE + angleViewRot)
    IF totRot > 360 THEN totRot = totRot - 360
    
    STYLE txt1Style
    
    TEXT2 0, 0, txt

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: REVOLVEDSHELL resolution #4717

    Bruce Walker
    Participant

    No – same result. There doesn’t seem to be a way to smooth the edges, like you can do with a REVOLVE, without massively increasing the polycount.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: REVOLVEDSHELL resolution #4706

    Bruce Walker
    Participant

    The same vase with a REVOLVE

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: REVOLVEDSHELL resolution #4703

    Bruce Walker
    Participant

    I gave this a go, but not quite the results I was looking for. I need to reduce the polycount, but still have a smooth appearance. Similar to what a REVOLVE will look like. See attached images.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: REVOLVEDSHELL resolution #4683

    Bruce Walker
    Participant

    Thanks Péter, I’ll give it a go.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Status code: sharp to smooth #4671

    Bruce Walker
    Participant

    Thanks Peter – this is it.

    Is there a way to set the material for the whole CPRISM without having to set it for each line (I don’t think so)? With the code you’ve supplied (thank you), a preceding MATERIAL command will only set the top and bottom materials.

    Also, the ‘side_material’ listing at the command level seems redundant, as this has to be set for each coordinate line. Am I reading this right?

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Boolean array #4664

    Bruce Walker
    Participant

    The workaround is to switch on/off based on the hotspot’s position. I have used this on a traffic road arrow, where the position of the hotspot determines the type of arrow.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Show on Stories parameter #4092

    Bruce Walker
    Participant

    I have a parameter that lets the user choose the display option of an object on the story above – if it’s shown above. If it’s Home Story Only I’d like to hide this parameter.

    Given that I can’t test for this, the next option is to test the relationship to the cutting plane.

    Thanks Gergely.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: TUBE twisting #3983

    Bruce Walker
    Participant

    Thanks Peter. The code works fine now, but there is still the twist at the apex. My library version (which says it’s up to date) is 4550.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Angle editing hotspot locks at '0' in 3D #3977

    Bruce Walker
    Participant

    I don’t know if Barry’s answer solved the problem, but the ‘7’ defines the rotation axis. Without it, I guess ARCHICAD doesn’t know which way the axis goes if the angle is 0.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Graphical Editing in Section Markers #3976

    Bruce Walker
    Participant

    This is the fourth such custom marker I have seen (with a tail, and text outside the marker head). I wonder if GS can adjust their standard marker to do this?

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: Incorrect "NEW" tag #3974

    Bruce Walker
    Participant

    It would also be good if the New tag had a number beside it, instead of a copy for every new post.

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

  • in reply to: TUBE twisting #3972

    Bruce Walker
    Participant

    Hi Peter,

    Finally got around to trying this out. It works…mostly. There is still one twist near the apex (see attached image). I haven’t delved into the code to figure out why. A promising result, though.

    BTW – two corrections to your code: there are two ‘next i’ nestings, and the ‘n’ in the first TUBE command doesn’t work (I replaced with NSP/4).

    www.brucepwalker.com
    https://www.mindmeister.com/65450406

    AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
    NVIDIA GeForce GTX 1060 8Mb

Viewing 15 posts - 1 through 15 (of 68 total)