sketchucation logo sketchucation
    • Login
    1. Home
    2. MaryamR
    3. Posts
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 34
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Loading skp model

      yes that how i solved it full path and the number 7 that was displayed reffers to :

      SU_ERROR_SERIALIZATION if an error occurs during reading of the file

      thnx ^^

      posted in Developers' Forum
      M
      MaryamR
    • Loading skp model

      hello everyone,

      did anyone ever tested the example code from the sketchup official website, The example that demonstrates how to load a SketchUp model from a .SKP file and read some data from it.

      i was testing it but the model wasn't loaded.

      SUModelRef model = SU_INVALID;
      SUResult res = SUModelCreateFromFile(&model, "test.skp");
      // It's best to always check the return code from each SU function call.
      // Only showing this check once to keep this example short.
      if (res != SU_ERROR_NONE)
      std::cout << "error " << res <<"ok";
      // return 1;

      and when i tried to display the "res" variable it showed the number 7.

      what did i did wrong ?

      posted in Developers' Forum
      M
      MaryamR
    • RE: Face Tilt

      i meant the code u suggested is it for Ruby or C/C++ SDK ?

      posted in Newbie Forum
      M
      MaryamR
    • RE: Face Tilt and orientation

      What i'm looking for is the degree of the angle between the face (wall for example) and the red axe and have that angle degree for each face,for example face 1 20°, face 2 80° ...

      posted in Developers' Forum
      M
      MaryamR
    • RE: Face Tilt and orientation

      i didn't quite understand how can i do get the orientation,as it's my first time using Sketchup C/C++ SDK.

      i meant by "N direction" an axe, for example find faces orientation using one axe red one for example as reference, because i need the degree of orientation.

      do u have an example of how to find the orientation ?

      posted in Developers' Forum
      M
      MaryamR
    • RE: Face Tilt

      thank you so much for your answer, this code works for C/C++ SDK in a C/C++ program or in Ruby ?
      as i was all day finding just examples in Ruby and i've never used it before.

      thnx

      posted in Newbie Forum
      M
      MaryamR
    • Face Tilt and orientation

      http://cdn2.tinyhousedesign.com/wp-content/uploads/2009/02/tiny-simple-house-2-450x406.png

      i'am new to Sketchup C/C++ SDK. I am creating a C/C++ program which gives me the geometry of a house model in Sketchup.I want to get the orientation of all the faces in the model and their Tilt. When I say the word 'Orientation' I mean to get the direction of every face relative to the N direction using the Axes in Sketchup and when i say Tilt i mean the degree of each face' tilt in the grey roof in this example.

      Can anyone come up with a solution or a method to do that?

      Thanks in advance

      posted in Developers' Forum
      M
      MaryamR
    • RE: Face Tilt

      the tilt is to be measured from vertical i want to find the angle between the vertical line and the roof.

      'Orientation' I mean to get the direction of every face relative to the Red Axe, for example a face will have orientation of 90 degrees as it is perpendicular to the red axis.

      thank you

      posted in Newbie Forum
      M
      MaryamR
    • Face Tilt

      http://cdn2.tinyhousedesign.com/wp-content/uploads/2009/02/tiny-simple-house-2-450x406.png

      i'am new to Sketchup C/C++ SDK. I am creating a C/C++ program which gives me the geometry of a house model in Sketchup.I want to get the orientation of all the faces in the model and their Tilt. When I say the word 'Orientation' I mean to get the direction of every face relative to the N direction using the Axes in Sketchup and when i say Tilt i mean the degree of each face' tilt in the grey roof in this example.

      Can anyone come up with a solution or a method to do that?

      Thanks in advance

      posted in Newbie Forum sketchup
      M
      MaryamR
    • Getting faces orientation and tilt using SU C api

      http://cdn2.tinyhousedesign.com/wp-content/uploads/2009/02/tiny-simple-house-2-450x406.png

      hello everyone i'm a newbie in Sketchup C api,

      those anyone worked withe the Sketchup C api to get information about a house model ?

      i need to get faces orientations (like for example 22° ) and roofs tilt (for example 45 °)from a house model, i found some code examples but they are all in Ruby.

      those anyone have a piece of code as an example or were can i find some examples of Sketchup C api ?

      thnx !!

      posted in Newbie Forum sketchup
      M
      MaryamR
    • RE: Face orientation

      hello how do u make difference between the walls (wall 1, wall 2) and when u receive the orientations how do u know each orientation belongs to which wall (wall 1 or wall 2 ) ?

      posted in Developers' Forum
      M
      MaryamR
    • RE: Face orientation

      Code: Select all
      def azimuth
      normal = self.normal

            return 0 if normal.x == 0 and normal.y == 0
      
            normal.z = 0
            angle = normal.angle_between(Geom::Vector3d.new(0,-1,0)).radians
            angle = 360-angle if normal.x < 0
      
            return angle +90
         end
      

      hello i using Sketchup C/C++ api in a C/C++ code and i need to get orientation of walls and roofs from a house model like yours, is it possible to use this code too or is it just for Ruby ?

      i also need to have roofs' degree of tilt , how can i do that ? does anyone have an idea ?

      thnx a lot !!

      posted in Developers' Forum
      M
      MaryamR
    • Extract some data like areas, facades orientations...

      Hello everyone,

      I need to develop an application using Java or c#, and I need to read SketchUp files to extract some data like volumes, areas, facades orientations, facades inclinations ...

      How can I do that ? Can I read SketchUp file from Java or c# application ? if so, how to do it? Can I launch a script (Ruby script) that can read and exploit the SketchUp file and use it? any ideas ? any examples ?

      Thank you for your help !

      posted in Newbie Forum sketchup
      M
      MaryamR
    • Retrieve information from sketchup house model

      Hello everyone i have an urgent project,

      I have a 3D house model created using Sketchup and i want to be able to retrieve some information from it.

      For example:

      • Walls surface and orientation.
      • Roofs surface and inclination.

      And export it as a word/pdf document.

      thank you in advance.

      posted in Newbie Forum sketchup
      M
      MaryamR
    • 1 / 1