• Login
sketchucation logo sketchucation
  • Login
⌛ Sale Ending | 30% Off Profile Builder 4 ends 30th September

Getting Started with SketchUp SDK

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 747 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 12 Aug 2011, 14:08

    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
    • D Offline
      Dan Rathbun
      last edited by 13 Aug 2011, 00:34

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

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dan Rathbun
        last edited by 14 Aug 2011, 04:20


        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
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement