James Murray

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 77 total)
  • Author
    Posts
  • in reply to: WALLHOLE ID Failing when saving window #18213

    James Murray
    Participant

    That was it. Thanks Barry. Since then I’ve had failures due to multiple spaces after the WALLHOLE. Not sure where the file got the idea it should have a bunch of spaces in a seemingly blank ID.

  • in reply to: WALLHOLE ID Failing when saving window #18193

    James Murray
    Participant

    Yes, it seems to be inconsistent. I haven’t discovered a pattern yet. I suspect the library part maker add-on, but I don’t have proof.

  • in reply to: Floor Plan and Section UI Page #4843

    James Murray
    Participant

    Yesssss! Thank you Piotr.

  • in reply to: Text rotation in labels #4829

    James Murray
    Participant

    That adjustment doesn’t seem to correct for when the label is at an angle, see image.

  • in reply to: SUBGROUP and surfaces #4806

    James Murray
    Participant

    I could use SUBGROUP and just set the MATERIAL of the operator beforehand, too.

    The issue is that there are multiple target shapes of different surfaces which I want to maintain.

  • in reply to: Railing Panel info #4737

    James Murray
    Participant

    It seems that the RAILINGPANEL_GEOMETRY polygon goes to the top of the segment (assuming the offset is zero). This makes the panel coincide with the top of the top rail. Is there a global or parameter that represents the top rail thickness, so I can lower the panel top automatically?

  • in reply to: Railing Panel info #4736

    James Murray
    Participant

    Thanks Peter, with the right globals it wasn’t too hard. Since wires don’t curve I thankfully can stay out of that area for now.

  • in reply to: Railing Panel info #4733

    James Murray
    Participant

    This:

    railNodeQ = VARDIM1 (RAIL_POLYLINE_GEOMETRY)
    PRINT 'railNodeQ=', railNodeQ
    
    panelLen = RAIL_POLYLINE_GEOMETRY[2][1] - RAIL_POLYLINE_GEOMETRY[1][1]
    PRINT 'panelLen=', panelLen

    …gives this report for a placed railing with a zig zag geometry, where I count 5 nodes in the polyline:

    railNodeQ= 2  ()
    panelLen= 0  ()
    railNodeQ= 2  ()
    panelLen= 0  ()
  • in reply to: Railing Panel info #4732

    James Murray
    Participant

    I’m getting an array of all zeroes in the report via PRINT for a placed railing.

    Can you tell me if RAIL_POLYLINE_GEOMETRY is the correct way to go?

  • in reply to: Forward Migration #4723

    James Murray
    Participant

    With Auto on, if the script is ignored, how does it know what new object to migrate the listed item to?

  • in reply to: Forward Migration #4719

    James Murray
    Participant

    OK, you need to turn AutoMigration off. What’s AutoMigration? Who knows, the manual is silent. Yes, I found the sole mention of it of AC-t, after I solved my own problem by chance. This Homebrew Computer Club stuff gets tiresome, tbh.

    Thanks for the help, Barry and Peter.

  • in reply to: Forward Migration #4716

    James Murray
    Participant

    I have a PLN from AC21 with a placed old object. When I open this in AC22 and load the new library, the placed object is migrated to become the new version. But I am trying to get the new parameter ‘bSurf’ to contain the value of the old parameter ‘aSurf’; instead bSurf has the value of the new object’s default. In other words, the value is not migrated.

  • in reply to: Forward Migration #4713

    James Murray
    Participant

    Sorry, I hit Submit too quickly. After migration, the placed new object in the migrated project has the default ‘bSurf’ value, not the different ‘aSurf’ value as the project was saved.

  • in reply to: Forward Migration #4712

    James Murray
    Participant

    I have basic migration (replacement) working, but I can’t figure out how to get parameter values to transfer to new parameters. I have two simple objects, where the old one (AC21) uses the parameter ‘aSurf’ and the new one (AC22) uses the parameter ‘bSurf’. The new one doesn’t have the ‘aSurf’ parameter. Here’s the whole script:

    
    !! Main guid of old placed version of object
    actualGUID = FROM_GUID
    
    _startID =	'2BA958FF-7CD1-FF4F-BD14-865C49035B48' ! old version
    _endID =	'4B5E33FD-B9DA-514D-AA20-7ECD437126D0'	! new version
    GOSUB 100
    
    !! switch object
    SETMIGRATIONGUID actualGUID
    
    END ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
    100:
    IF actualGUID = _startID THEN
    	rrr = STORED_PAR_VALUE ("aSurf", aSurf_val) ! get value from old
    		bSurf = aSurf_val
    		PARAMETERS bSurf = bSurf ! apply to new
    
    	actualGUID = _endID
    ENDIF
    
    RETURN
  • in reply to: Global for Favorites Mode #4682

    James Murray
    Participant

    Well I finally got around to implementing this. It works for 3D, and for 2D symbols, but it doesn’t seem to work for labels.

    This code:

    content_ = 'Text'
    IF GLOB_PREVIEW_MODE = 3 THEN content_ = 'Fave'
    
    TEXT2 0, 0, content_

    …works for a drawing symbol subtype object, but fails when you convert it to a label. (The favorite preview reads ‘Text’.)

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