Csilla Mai

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: PERSONALISE DOOR IN CURTAIN WALL #4650

    Csilla Mai
    Keymaster

    Hi,

    For creating a Curtain Wall Panel Door check out the How to make a curtain wall panel? post and its example object. In this post the parameters for panel dimensions are explained, which are valid for the curtain wall door panels as well.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Get rid of auto 3d hotspots? #4624

    Csilla Mai
    Keymaster

    Hi Mats,

    If there are no hotspots written in the 3D script, ARCHICAD will always add hotspots automatically. Adding one hotspot to the 3D script will eliminate the others. For example:

    hotspot 0, 0, 0, 1

    However the AC_show2DHotspotsIn3D parameter should have an effect, I will add this issue as a bug into our database. Thank you for reporting it!

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Get rid of auto 3d hotspots? #4612

    Csilla Mai
    Keymaster

    Hi Mats,

    Please attach your object as a zip file, so we can investigate your problem.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Write a Property into a parameter? #4327

    Csilla Mai
    Keymaster

    Hi Joachim,

    It is not possible to get automated door numbers based on a Zone expression, a Zone expression value cannot be stored as a parameter in ROOM_NUMBER or ROOM_NAME.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Parameter values with array (dim) #3797

    Csilla Mai
    Keymaster

    Hi Pavel,

    The values command in parameterscript only defines a set of values for the actual parameter, it does not change the parameter’s value itself.

    For changing the parameter’s value, use the parameters command:
    parameters nTypZdroje = aTypZdroje

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: more picture parameters #3441

    Csilla Mai
    Keymaster

    Hi,

    The User image files can be requested by an application query . The value list of “gs_picture_name” and “gs_picture_name_2D” parameters are defined in a Library Master file by the returned data of this application query:

    ! ==============================================================================
    ! Custom picture file request
    ! ==============================================================================
    dim stCustomPicFiles[]
    bCustomPicFileExist = APPLICATION_QUERY (“LIBRARY_MANAGER”, “USER_IMAGE_FILES”, stCustomPicFiles)
    if bCustomPicFileExist then
    values “gs_picture_name” stCustomPicFiles, CUSTOM
    values “gs_picture_name_2D” stCustomPicFiles, CUSTOM
    endif

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: more picture parameters #3439

    Csilla Mai
    Keymaster

    Hi,

    If you would like to use the same value list for the same parameter in more library parts, you can create a library part under Library Master subtype. This library part’s every value list definition applies to all the parameters with the same name in the loaded library. If you write the value list definition for “gs_picture_name” parameter in the parameter script of the library part with the Library Master subtype, as the example:

    values "gs_picture_name" "1.png", "2.png", "3.png", "4.png", CUSTOM

    then every string parameter with the name “gs_picture_name” will get this value list automatically.

    If you want to use the same value list in one library part more times, it is recommended to store the list in an array, and use the array as a value list for the differently named parameters.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Stop label mirroring on Hotlinked Module #3411

    Csilla Mai
    Keymaster

    Hi Kristian,

    Please add some more information about this mirroring problem.
    The problem only appears in hotlinked modules? If you mirror a room with the labeled wall within a .pln file, do you get the expected result?
    Could you send a picture of the Label, which behavior would you like to follow in case of mirrored hotlink? And could you please send a picture of your label’s current behavior?

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Paragraph/textblock/label text alignment #2706

    Csilla Mai
    Keymaster

    Hi James,

    I hope this short script will help you with the alignment problem:

    ! fontType and fontSize are parameters
    
    define style{2} "NormalStyle" fontType, fontSize, 0		
    style "NormalStyle"
    
    if sgn(LABEL_POSITION[2][1]) = -1 then
    	_iAlign = 3
    else
    	_iAlign = 1
    endif
    
    paragraph "paragraphName" _iAlign,
    		0, 0, 0,
    		1
    		style "NormalStyle"
    		"sample Text of Label"
        endparagraph
    
    _textblockWidth = 7 ! Just for example
    
    textblock "stTextblockName" _textblockWidth,
    	1, 0, 1, 1, 0,
    	"paragraphName"
    
    richtext2 0, 0, "stTextblockName"

    It results the behaviour you can see on the attached picture. If it does not solve your problem, please upload the 2D script or the object which you are working on.

    Attachments:

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Paragraph/textblock/label text alignment #2700

    Csilla Mai
    Keymaster

    Hi James,

    If the Pointer is drawn by ARCHICAD (the LABEL_CUSTOM_ARROW global is 0), the LABEL_POSITION[2][1] global gives back the Pointer’s horizontal width depending on the actual connection side with the Label symbol. You can use this value with the SGN() function to define the text alignment in the paragraph and textblock commands by the sign of the width value.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Zone Stamp Decimal Places #2346

    Csilla Mai
    Keymaster

    Hi Derek,

    The REQUEST(“Calc_area_unit”) command is only supported in 2D script, and it returns a format which can be used for string conversions. For scheduling the Realnum parameter itself, the setting at Options/Project Preferences/Working Units/Angle & Font Size Decimals in Dialog Boxes: takes effect on the number of the decimals.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Zone Stamp Decimal Places #2343

    Csilla Mai
    Keymaster

    Hi Derek,

    In your script a form of STR function is used, which is the first form in the GDL Guide:

    STR (numeric_expression, length, fractions)

    The fractions gives the number of characters after the floating point. If you would like the user to control the number of the decimals, then you can create a new parameter, for example “iDecimals” and rewrite the masterscript:

    str_area_m2 = AreaM2Text + str(num_area_m2,8,iDecimals) + ' sq m'
    str_area_ft2 = AreaFt2Text + str(num_area_ft2,8,iDecimals) + ' sq ft'
    str_area_acre = AcreText + str(num_area_acre,8,iDecimals) + ' acres'
    str_area_hect = HectText + str(num_area_hect,8,iDecimals) + ' hectares'
    

    To format the values according to the Project Preferences setting, see the How to display values with units set in Project Preferences? post.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Request Override Surfaces #2204

    Csilla Mai
    Keymaster

    Hi Daniel,

    The surface indices of the ARCHICAD elements are available through the Global Variables. To get the name of the material you can use the “Name_of_material” request. For example displaying the material names of a slab element in a label object in 2D:

    _matTop 	= ""
    _matBottom 	= ""
    _matEdge 	= ""
    
    r = request ("Name_of_material", SLAB_MAT_TOP, _matTop)
    r = request ("Name_of_material", SLAB_MAT_BOTT, _matBottom)
    r = request ("Name_of_material", SLAB_MAT_EDGE, _matEdge)
    
    text2 0, -1, _matTop
    text2 0, 0, _matBottom
    text2 0, 1, _matEdge

    Is this solution the one that you need? Could you please explain that what would you like to use the material names for?

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: Problem whith my program in interface page #1599

    Csilla Mai
    Keymaster

    Hi Tonio,

    Apologies for the previous attachment (for version 20).
    In this new attachment you can find two kinds of solutions in the Array_inCallerObject folder and Array_inMacro file. In the latter case you do not have to set the material list arrays in all of your objects, but the parameter would disappear if the user sets the Material parameter in the caller object to 1. Therefore the ‘All parameter’ list should not be hidden, because it could make the parameter invisible for the user, once its value is set to 1. The other solution would not hide the parameter from the user by setting its value to 1, but the materials have to be listed in the caller object.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

  • in reply to: XML Extension #1901

    Csilla Mai
    Keymaster

    Hi Kristian,

    A new post has been created about the XML Extension in the Tips And Tricks section: How to use the GDL XML Add-On?. It contains a basic example about listing the parameter descriptions and values of an xml file. If you would like to see a more complex example then please send your request to gdlcenter@graphisoft.com. We will check it before long and may release a new post about it.

    Csilla Mai
    Library Developer, Library Team
    GRAPHISOFT SE

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