James Murray

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 84 total)
  • Author
    Posts
  • 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?

    James M

    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?

    James M

    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.

    James M

    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.

    James M

    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.

    James M

    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

    James M

    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’.)

    James M

    in reply to: Global for Favorites Mode #4638
    James Murray
    Participant

    Thank you Barry. That’s what I get for looking at the 21 version of the book.

    James M

    James Murray
    Participant

    There’s also extreme copies of a lot of property objects.

    James M

    in reply to: Trying to understand autoscripted groups #4248
    James Murray
    Participant

    I don’t have any trouble understanding how to handle the code. I’m curious about the process.

    James M

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3996
    James Murray
    Participant

    Gergely, I’ve submitted this as #244744. I would have PM’d you but I didn’t see the option.

    James M

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3966
    James Murray
    Participant

    Anything more on this?

    James M

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3941
    James Murray
    Participant

    Thanks, I’m getting closer. The array dump works. How do I capture just the description? I get an error if I try to set a variable equal to p_values_and_descriptions[1][1], for example.

    James M

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3939
    James Murray
    Participant

    One more try. open square bracket i close square bracket open square bracket j close square bracket. Maybe it did the same thing to your text. Thanks again for the help.

    James M

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3938
    James Murray
    Participant

    Again what I post does not show up. I was trying to say the text2 line needs to refer to p_values_and_descriptions[i][j], not just [j]. (Incidentally, I tried to bold the [i].)

    James M

Viewing 15 posts - 16 through 30 (of 84 total)