Quantcast
Channel: ArchiCAD-Talk - Libraries / Library Parts / GDL
Viewing all articles
Browse latest Browse all 3838

How to change parameters and keep dimensione of an object?

$
0
0
Author:LGreen
Posted: Fri Jul 31, 2015 12:37 am (GMT+1)


Hi Durval,

This happens because the parameter script can be run multiple times, thus resulting in the calculation occurring twice or more. I had this exact problem last year and it's a simple solution. Here is the topic I started. It has a working object in my last reply. Essentially you need to insert the code below from Michael Rensing (Found in this topic) which only runs part of the script if it is the first time the script is being run.

Michael Rensing wrote:
This should do it.

Code:

   n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)
   IF isFirstRun THEN
      A=A+1
   ELSE
      A=A
   ENDIF

_________________
Lachlan Green | Architect
Fulton Trotter Architects
AC18 | Windows 7 Dual 27" | 3.07GHz | 32GB RAM


Viewing all articles
Browse latest Browse all 3838

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>