sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Getting Started with SketchUp SDK

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 768 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      francoisff
      last edited by

      Hi,

      I'm trying to develop a C++ application which can read a .skp file, modify it and write a new .skp file.

      Unfortunately, I have a lot of difficulties to get started with the API, with its documentation and with its examples.

      First, I managed to create a "SketchupReader" application which opens a .skp file and accesses the model. But, I didn't manage to access the attributes of the entities. Apparently, the class ISkpAttributeDictionary is the key, but I don't know how to get from the ISkpEntity object the ISkpAttributeDictionary object .

      Then, I tried to compile the skpwriter_example but I never managed. I use VS 2010 and I don't know if some modifications are needed.
      Here's the error code

      1>c;\program files\microsoft visual studio 10.0\vc\include\xstring(468); error C2664; 'atlast;;utils;;allocator<T>;;allocator(const atlast;;utils;;allocator<T> &) throw()' ; impossible de convertir le paramètre 1 de 'atlast;;utils;;allocator<T>' en 'const atlast;;utils;;allocator<T> &'
      1>          with
      1>          [
      1>              T=std;;_Container_proxy
      1>          ]
      1>          and
      1>          [
      1>              T=UNICHAR
      1>          ]
      1>          and
      1>          [
      1>              T=std;;_Container_proxy
      1>          ]
      1>          Raison ; impossible de convertir de 'atlast;;utils;;allocator<T>' en 'const atlast;;utils;;allocator<T>'
      1>          with
      1>          [
      1>              T=UNICHAR
      1>          ]
      1>          and
      1>          [
      1>              T=std;;_Container_proxy
      1>          ]
      1>          Aucun opérateur de conversion définie par l'utilisateur disponible qui puisse effectuer cette conversion, ou l'opérateur ne peut pas être appelé
      1>          c;\program files\microsoft visual studio 10.0\vc\include\xstring(464) ; lors de la compilation de la fonction membre 'std;;_String_val<_Elem,_Alloc>;;_String_val(atlast;;utils;;allocator<T>)' de la classe modèle
      1>          with
      1>          [
      1>              _Elem=UNICHAR,
      1>              _Alloc=atlast;;utils;;allocator<UNICHAR>,
      1>              T=UNICHAR
      1>          ]
      1>          c;\program files\microsoft visual studio 10.0\vc\include\xstring(522) ; voir la référence à l'instanciation de la classe modèle 'std;;_String_val<_Elem,_Alloc>' en cours de compilation
      1>          with
      1>          [
      1>              _Elem=UNICHAR,
      1>              _Alloc=atlast;;utils;;allocator<UNICHAR>
      1>          ]
      1>          c;\users\administrateur\desktop\skpwriter_example\skpwriter_example\source\common\utils\ustring.h(60) ; voir la référence à l'instanciation de la classe modèle 'std;;basic_string<_Elem,_Traits,_Ax>' en cours de compilation
      1>          with
      1>          [
      1>              _Elem=UNICHAR,
      1>              _Traits=std;;char_traits<wchar_t>,
      1>              _Ax=atlast;;utils;;allocator<UNICHAR>
      1>          ]
      1>
      1>ÉCHEC de la build.
      

      Please Help me, I really need my work works

      Thanks!!

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        [Info] C/C++ Ruby extensions & SketchUp plugins

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by


          Look in dir: source\sketchup\skpwriter\sapi

          at file: ientity.h

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement