Forum Replies Created
-
AuthorPosts
-
James Murray
ParticipantI’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
James Murray
ParticipantWith Auto on, if the script is ignored, how does it know what new object to migrate the listed item to?
James M
James Murray
ParticipantOK, 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
James Murray
ParticipantI 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
James Murray
ParticipantSorry, 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
James Murray
ParticipantI 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
James Murray
ParticipantWell 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
James Murray
ParticipantThank you Barry. That’s what I get for looking at the 21 version of the book.
James M
October 9, 2018 at 23:00 in reply to: Extreme proliferation of Archicad_Library_Master in embedded library #4288James Murray
ParticipantThere’s also extreme copies of a lot of property objects.
James M
James Murray
ParticipantI don’t have any trouble understanding how to handle the code. I’m curious about the process.
James M
James Murray
ParticipantGergely, I’ve submitted this as #244744. I would have PM’d you but I didn’t see the option.
James M
James Murray
ParticipantAnything more on this?
James M
James Murray
ParticipantThanks, 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
James Murray
ParticipantOne 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
James Murray
ParticipantAgain 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
-
AuthorPosts