sketchucation logo sketchucation
    • Login
    1. Home
    2. francoisff
    3. Posts
    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
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    Posts

    Recent Best Controversial
    • Getting Started with SketchUp SDK

      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!!

      posted in Developers' Forum
      F
      francoisff
    • 1 / 1