Getting the size of a loaded picture

Home Forums Problems and solutions in GDL Informations from the environment Getting the size of a loaded picture

Tagged: , ,

Viewing 2 reply threads
  • Author
    Posts
    • #18564
      Nader Belal
      Participant

      Hi there,

      I would like to ask about how can I use GDL to get a bitmap’s size, knowing that the bitmap has been previously loaded by ArchiCAD’s Library Manager ?

      Best regards,
      Nader Belal

    • #18567
      Péter Baksa
      Keymaster

      Sorry, you can’t. It is possible to get the model size of a texture using
      REQUEST{2} ("Material_info", material, "gs_mat_texture", file_name, width, height, mask, rotation_angle)
      but that can be changed by the user in the Surface dialog.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18570
      Nader Belal
      Participant

      @Péter Baksa

      Thank you, but I don’t think that will solve my issue.

      I will explain why I have asked for it:
      I had to script a special title block, for layouts consistency, data extraction from the model and above all, to prevent users from messing thinks up.

      So one of the requirements was that the logo of the designer can be loaded to the title block object, and I have found out:
      1. Picture2 & Picture2{2} masking values do not have the same power of Picture.
      2. You can’t extract bitmap’s size even when it’s already loaded to the project’s library (for scaling and positioning purposes).

      Don’t worry, I have already solved it by another way, (fixing a standard size in pixels and telling users to user the multiple of that size).

      Anyway, I have put a request for a Picture2{3} here
      https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=69101&p=307027#p307027

      Thank you.

Viewing 2 reply threads
  • The forum ‘Informations from the environment’ is closed to new topics and replies.