Barry Kelly

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 133 total)
  • Author
    Posts
  • in reply to: Blocking the descriptions #4844

    Barry Kelly
    Participant

    Sorry, you actually want to hide the scripts.
    As Joachim mentioned, there is an old ‘Hidescripts.exe’ program that will lock the script buttons as shown in your image.
    It is very old (still works) and I think it can be found in the library developers kit (but I am not 100% sure).

    It is no longer needed now as the GDL objects have an option to set a password when saving.
    The objects can only then be opened with that password – so don’t lose it or keep a copy of the original object saved without a password.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Blocking the descriptions #4819

    Barry Kelly
    Participant

    You mean how do you unlock the scripts?
    You don’t – or at least you are not meant to.
    The author of the object has deliberately locked them so they can’t be accessed.
    Contact the author of the object to see if they will allow you access and if so they can send you an unlocked version.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Variable Mismatch #4797

    Barry Kelly
    Participant

    I would say …

    IF isFirstRun THEN
    	execute code....
    ENDIF

    At least this is what has been mentioned in other posts about it.
    I think it may be a little confusing and ‘isfirstrun’ only gets a value when it is the first run.
    I am not sure if it gets a higher value on multiple parameter script runs.

    I still don’t understand your code.

    ProHeight = abs(_yMax - _yMin)
    SquareV2 = ProHeight / ( cos(phi) )

    SquareV2 still has nothing to do with the first bit of code you posted.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Variable Mismatch #4792

    Barry Kelly
    Participant

    I am a little confused by your script.
    ‘SquareV2’ should never change as nowhere in your formula are you setting the value for it.

    To check for the ‘firstrun’ of the parameter script, you can try using this to catch it…

    First Occasion in Progress
    n = APPLICATION_QUERY (“parameter_script”, “firstoccasion_in_progress”, isFirstRun)
    This command returns whether the current run is the first run or a consequence of a previous execution of the parameter script which changed
    some parameters. This command has no additional parameters.
    The distinction may be important when a part of the parameter script executes a triggered event – e.g. it handles the pushing of a function button.
    isFirstRun: The returned value shows whether the current run is the first run

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Clear 'New' posts #4771

    Barry Kelly
    Participant

    A couple of weeks ago, ‘Maman Sukmana’ posted a few spam posts.
    His profile has since been blocked and the posts deleted, but they still show as ‘NEW’ posts in the forum.

    I managed to read one before his profile was blocked, so that has gone (for me), but two still remain.
    As we can not mark them as read, and of course can’t open them as they have been deleted, could admin please delete this user for good and/or clear these ‘NEW’ posts?
    See attached image.

    Thanks,
    Barry.

    Attachments:

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Emails not being sent #4762

    Barry Kelly
    Participant

    Yes they do work – so long as you tick the box.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit


  • Barry Kelly
    Participant

    I am so glad to have helped you.
    Thank you for thanking me.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit


  • Barry Kelly
    Participant

    What about …

    if GLOB_MODPAR_NAME ="Parameter1" then
    Parameter2 = Parameter1 + 1
    PARAMETERS Parameter2 = Parameter2
    endif
    
    if GLOB_MODPAR_NAME ="Parameter2" then
    Parameter1 = Parameter2 - 1
    PARAMETERS Parameter1 = Parameter1
    endif

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Emails not being sent #4727

    Barry Kelly
    Participant

    I don’t know if they work or not.
    I always forget to tick the box for notification.
    I have ticked this one though.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Forward Migration #4722

    Barry Kelly
    Participant

    Automigration is a special type for migration: it simply does an ID change, without running migration scripts. It is useful to eliminate migrations from new elements, and create step-by-step migration logic through many versions.

    So to clarify, if we just want to migrate objects with no parameter changes, we just add the old object GUID to the list and turn on AutoMigration.
    It will ignore anything in the migration script.

    Here is the link to the actual post Peter has quoted from Greg.
    I had forgotten I was even a part of that conversation. (insert embarrassed face emoji here).

    https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=58220&p=274105&hilit=automigration#p274105

    Thanks Peter and Greg.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Forward Migration #4720

    Barry Kelly
    Participant

    It is all a bit of a mystery.
    In the GDL manual STORED_PAR_VALUE and DELETED_PAR_VALUE seem to do exactly the same thing.
    I figured I should use DELETED_PAR_VALUE if the parameter no longer exists in the new object, but I am guessing it doesn’t matter.

    I can find no reference as to what AutoMigration does, either here in the GDL Center or the Help Center.
    Or if it is there it is just hard to find.

    I have always had AutoMigration turned off, so would never noticed it is a problem.

    Also, I find it is easiest to use the ‘Migration’ section to find out the GUID of your new object.
    You need the GUID of any old objects here – just don’t forget to delete the current object GUID once you have found out what it is and pasted to the migration script.
    Otherwise the object will simply not migrate, and there will be no error messages to say why.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Forward Migration #4718

    Barry Kelly
    Participant

    I use DELETED_PAR_VALUE – that works for me.

    So …

    IF actualGUID = _startID THEN
    	rrr = DELETED_PAR_VALUE ("aSurf", aSurf_val) ! get value from old
    		bSurf = aSurf_val
    		PARAMETERS bSurf = bSurf ! apply to new
    
    	actualGUID = _endID
    ENDIF

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Global for Favorites Mode #4645

    Barry Kelly
    Participant

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

    I still use the book from version 6.5 – as it was the last physical book printed and I find it much more convenient than opening a PDF.
    Good job most of the basic stuff is still the same.
    I just keep forgetting to look at the new options though.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Global for Favorites Mode #4636

    Barry Kelly
    Participant

    Yes it is GLOB_PREVIEW_MODE = 3

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • in reply to: Access to Minimum Space with GDL #4633

    Barry Kelly
    Participant

    The only way I know of to control this globally for all doors would be to use Model View Options.
    I see with the default Graphisoft library there is an MVO setting to show/hide the minimal space, but not to control the sizes.

    Or select all doors at once and make the changes you need (so long as the doors have been scripted with those options of course and they are not hidden).

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

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