Barry Kelly

Forum Replies Created

Viewing 11 posts - 121 through 131 (of 131 total)
  • Author
    Posts
  • in reply to: master_​gdl – user global variable usage #1923

    Barry Kelly
    Participant

    I replied in Archicad-talk but I think the problem is that you just need to reload the library to activate the Master_GDL object.

    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: What is the proper replacement for GLOB_​CONTEXT=1? #1809

    Barry Kelly
    Participant

    I don’t know that the lpxmlconverter will help me with objects already placed in my plans.
    Yes it will help me convert from one version to another and maybe even add parameters to an object – I really don’t understand what it does.
    But I am sure it will not detect the settings of a parameter that has been placed in a file and then set another parameter based on the settings.

    I have attached a PDF that has images through it to try and explain my problem better.
    Easier than to add individual attachments.

    Please let me know if what I describe can be done with lpxmlconverter.

    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: What is the proper replacement for GLOB_​CONTEXT=1? #1781

    Barry Kelly
    Participant

    Thanks for the reply Gergely but I really didn’t understand it.
    I have never used the lp_xmlconverter.
    It is not a case of updating the actual library part.
    What I am trying to do is trap an actual object instance in a plan.
    If it has a certain parameter then swap that.
    I only want to check it once which is why the flag parameter gets reset.
    If I don’t have the GLOB_CONTEXT <> 1 then the flag will reset in the script editor which I don’t want.
    It needs to be off and only reset when I am not editing the script.

    Not sure if that explains it any clearer.
    Basically I need to trap (or exclude) when I am in the GDL editor.
    How do I do that without GLOB_CONTEXT.

    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: What is the proper replacement for GLOB_​CONTEXT=1? #1769

    Barry Kelly
    Participant

    I use it to check settings in existing objects and modify them to new values then set a ‘flag’ parameter to say it has been done so it does not get checked again.
    I don’t want this to happen in the GDL editor as I need to save the object with the ‘flag’ parameter set to 0 so I filter that with GLOB_CONTEXT <> 1.
    This way it does not reset in the GDL editor but only when the object scripts are run in the model.

    !!set page type for existing objects so they don't default to wrong object
    if GLOB_CONTEXT <> 1 then
    	if flag = 0 then
    		if category = "LIGHTING" then
    			if ind_objects = "MOTION SENSOR" then
    				page_type = "SUPERSEDED"
    			else
    				page_type = "LIGHTING"
    			endif
    		endif
    		if category = "POWER" then
    			page_type = "POWER"
    		endif
    		if category = "DATA & SECURITY" then
    			if ind_objects = "NX4 ALARM PANEL" then
    				page_type = "SUPERSEDED"
    			else
    				page_type = "DATA & SECURITY"
    			endif
    		endif
    		if category = "TELSTRA VELOCITY" then
    			if STRSTR(ind_objects, "TELSTRA VELOCITY") > 0 then
    				page_type = "SUPERSEDED"
    			endif
    		endif
    		PARAMETERS page_type = page_type
    		flag = 1
    		PARAMETERS flag = flag
    	endif
    endif
    
    

    A similar situation was posted here in Archicad Talk … http://archicad-talk.graphisoft.com/viewtopic.php?t=50571

    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

    Unfortunately not.
    Apart from the fact I can only get the name of complex profile walls (composite walls just come up ‘N/A’) it suffers from the same issue that a default (new) window does not yet belong to a wall so doesn’t get the wall name.
    This is understandable but it used to use the default wall name in version 16 and before.
    Why can it not do the same now?
    When scripting it assumes the wall default still so why can’t it for a new window?

    I have gotten around the problem by scripting in a parameter where the user can choose the brick type for a new window just so they can get the correct sizes but it will then automatically use the correct wall type once placed in a wall.
    This just allows the user to set the correct size before placing the window rather than place the window, get the wrong size and then have to fix it.

    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

    Seems I could only add two images.
    Here are the others.

    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: HEY!!! #1528

    Barry Kelly
    Participant

    Could we please have the forum hierarchy link duplicated at the bottom of the posts or at least have a ‘return to top’ link so we don’t need to scroll all the way back to the top as the posts start to get longer and longer?
    Or a “next unread post” button would be nice.

    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: HEY!!! #1501

    Barry Kelly
    Participant

    Thanks Gergely.
    Makes it much easier to spot the new posts.

    I still prefer the phpBB forums though.
    This will take a little getting used to.
    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: HEY!!! #1487

    Barry Kelly
    Participant

    Yes the GDL centre is a good idea.
    No I don’t like this forum.
    I can’t always remember when I last read the posts and even when I can it doesn’t work.
    I read posts about 6 hours ago – there was nothing from CadImage then – I am sure.
    Now I look again and there is a post from CadImage 9 hours 44 minutes ago.
    I haven’t even been at work for 9 hours (yet) and it wasn’t because I left the browser open and hadn’t refreshed – I started fresh this morning – and I am sure it wasn’t there until now.
    Maybe I am mistaken.
    So I could easily have missed this post – I like to read everything if I can – you never know what you might learn.

    I like the Architalk forum or the Developers forum where new post are highlighted and don’t change until they are read – no matter how long it has been.

    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: What is the proper replacement for GLOB_​CONTEXT=1? #1856

    Barry Kelly
    Participant

    Thanks Ben.
    I’ll have to sit down and give it a shot.

    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: What is the proper replacement for GLOB_​CONTEXT=1? #1854

    Barry Kelly
    Participant

    Yes I was thinking the same thing.
    I have had a look at the manual and it hasn’t sunk in yet how it needs to be scripted.
    Looking at examples in the GS library just confused n=me even more.

    Does anyone have a very simple example of migrating one object to another and setting new parameters based on the values of old object parameters?

    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 11 posts - 121 through 131 (of 131 total)