Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all 564 articles
Browse latest View live

Non-blocking behavior

$
0
0
Author:Ralph Wessel
Posted: Fri Dec 11, 2015 4:12 pm (GMT+1)


stefan wrote:
We did a test with boost threading and that seemed to work for now. Need further testing.

I've used GS::Runnable, but only in the context of the element settings dialogs.
_________________
Ralph Wessel
Cadimage


Non-blocking behavior

$
0
0
Author:Xylios
Posted: Mon Dec 14, 2015 3:25 pm (GMT+1)


Hello there, sorry for only posting today. I have been busy with writing my thesis.

Anyway, thank you for all the replies.

I tried creating a panel, with a panel manager, following an example I found on this forum, http://archicad-talk.graphisoft.com/viewtopic.php?t=49587

I implemented the PanelIdle to do the communication, but the palette never received any idle events. I also tested it using the panel resize events, although it received the events correctly, it would block ArchiCAD.

After that, I decided using a simple C++ thread, and it seems to be working, at least for my purposes. However, I will still need to do more testing.

Once again, thank you for the help.

MAC API

$
0
0
Author:poco2013
Posted: Wed Jan 13, 2016 6:04 pm (GMT+1)


I recently moved to the mac from the PC. I had developed a number of plug-ins for the PC based on the examples for the PC. Now would like to do the same on the MAC, however,when I try to log in to the API file site I find that my credentials are no longer valid. I understand that graphisoft has changed their developer site from PARTNER to GSPARTNER but that has a new sign in.

I requested a new sign in several weeks ago but have yet to hear anything. Also I sent in a support ticket two months ago (twice now) but both tickets were just forwarded to development and I never heard from anyone since.

Does anyone know whats going on and why access has been denied now.

Can't understand why Graphisoft is just ignoring people. Certainly, if their wondering why they can't compete with Revit in North America --- this maybe why?
_________________
Gerry

MAC OS El Capitain; archicad 19

MAC API

$
0
0
Author:Alex Moruzzi
Posted: Wed Jan 13, 2016 6:49 pm (GMT+1)


You should change your signature from Windows 7 then... Can't help you on the admin side ...hope you get reply ...
Very Happy
_________________
Archicad 19 - OSX10.10 - MBP early 2011 16G/ssd

MAC API

$
0
0
Author:Nikolett Horvath
Posted: Thu Jan 14, 2016 7:23 pm (GMT+1)


Hi Gerry,

I regret to hear that you haven't received answer to your question. Please be sure that you use the following email address: developer-registration@graphisoft.com

Let me remind you that API Developer registration expires yearly, that's why you may not access the download page. You can renew your developer membership here: http://www.graphisoft.com/support/developer/downloads/

FYI, the address of the API devkit download page remained the same.

I hope this information helps to solve your problem.

MAC API

$
0
0
Author:poco2013
Posted: Fri Jan 15, 2016 2:20 pm (GMT+1)


Thanks for all the responses. Let me report a happy outcome. I finally did get a link from Graphisoft TS for the mac API. Loaded them and they compile just fine under XCODE. BTW -- the download and use of the API and Examples always was free as still is the access to the developer agreement and the utility to generate the use codes. Only developer TS is paid. Only problem now was that the access code utility is generating an exception on the mac when I try to run it. Reported same. But no problem, I just used the PC and Windows version to get all the access codes I need for the examples and my couple small programs. == Happy now.
_________________
Gerry

MAC OS El Capitain; archicad 19

Proper way of including Dynamic Libraries

$
0
0
Author:Akos Somorjai
Posted: Tue Jan 19, 2016 10:36 am (GMT+1)


stefan wrote:
What is the proper way to install an add-on which uses Dynamic Libraries? (DLL on Windows, dylib on OSX).


Specifically on OSX: should they be embedded in the Bundle? Or placed in the same folder as the bundle? In the ArchiCAD Root or Support folder?

e.g. I see for the Rhino add-in, that the "dylib" for OpenNURBS is installed in the ArchiCAD Support folder and that the library has an @rpath/ install name.

Are we allowed to put our dylibs there? Would it be better to have them alongside our own bundle?

I prefer to have an Add-on that is self-contained.


On OS X the preferred way is to put the dylib into the bundle, according to Apple's guidelines. You'll have to set up the root of the @rpath correctly, unless you wan to load the dylib manually via dlopen().

Best, Á kos

Create and change database to newly created db

$
0
0
Author:Akos Somorjai
Posted: Tue Jan 19, 2016 10:44 am (GMT+1)


vuego wrote:

Code:

   CHANSI2Unicode ("Det 1", (GS::Int32)strlen("Det 1"), dbInfo.name, API_UniLongNameLen);
   CHANSI2Unicode ("D10", (GS::Int32)strlen("D10"), dbInfo.ref, API_UniLongNameLen);



This can be simplified to:
Code:

   GS::ucscpy (dbInfo.name, L("Det 1"));
   GS::ucscpy (dbInfo.ref, L("D10"));


Best, Á kos


LP_XML lower than 16 dont support builtin images?

$
0
0
Author:Jiuzhu Zhang
Posted: Wed Jan 20, 2016 9:30 am (GMT+1)


Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Very Happy Thanks all!

Projected Area and Legacy Settings

$
0
0
Author:Akos Somorjai
Posted: Wed Jan 20, 2016 9:38 am (GMT+1)


stefan wrote:
When you collect the quantities of composite layers from Walls, using ACAPI_Element_GetSurfaceQuantities you can get the Projected Area/Exposed Surface from the API.

However, I noticed that if you have a project where the option "Use Legacy intersection and Surface methods for model elements" is enabled for your project, the exposed surface stays ZERO.

Is this a bug? Or a limitation? I did not read it in the documentation.


Hi Stefan,

The special 3D model we use to calculate the exposed areas cannot be created in legacy mode, so you'll always get 0 area.

Best, Akos

How to embed images in gsm with " LP_XMLconverger"?

$
0
0
Author:Jiuzhu Zhang
Posted: Wed Jan 20, 2016 9:51 am (GMT+1)


Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Very Happy Thanks all!

LP_XML lower than 16 dont support builtin images?

$
0
0
Author:Akos Somorjai
Posted: Wed Jan 20, 2016 10:14 am (GMT+1)


Jiuzhu Zhang wrote:
Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Very Happy Thanks all!


Hi,

Which version of LP_XMLConverter do you use?

If you start LP_XMLConverter with the 'help' parameter, then it'll list all the possible commands. The one that converts a GSM object to XML source is 'libpart2xml'.

After getting the XML source you can add the GDLPict section to the .xml file.

Do you see any error message in the cmd prompt when the LP_XMLConverter.exe crashes?

Regards, Akos

emptyHolesSurf1 and 2

$
0
0
Author:stefan
Posted: Wed Jan 20, 2016 2:37 pm (GMT+1)


When we collect the emptyHolesSurf1 and emptyHolesSurf2 from the API_WallQuantity structure, they seem to include the Doors/Windows as well.

Is an "empty opening" is actually still seen as a door or window?

E.g. Wall 10x3x1 meter
Empty Window 1x1 meter
Door 2x2 meter

windowsSurf = 0
doorsSurf = 4
emptyHolesSurf = 1
emptyHolesSurf1 = 5 (!)
emptyHolesSurf2 = 5 (!)
emptyHolesVolume = 5 (!)

This is simply what is received from the API.
_________________
--- stefan boeykens --- architect-engineer-musician ---
ArchiCAD18-19/Revit2016/SketchUp2015/Cinema4D16/Rhino5/Unity5
rMBP15:i7Quad2.3Ghz+16GB+nVidia650M/ElCapitan+Win10

http://bit.ly/17u87df

LP_XML lower than 16 dont support builtin images?

$
0
0
Author:Jiuzhu Zhang
Posted: Fri Jan 22, 2016 3:53 am (GMT+1)


Akos Somorjai wrote:
Jiuzhu Zhang wrote:
Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Very Happy Thanks all!


Hi,

Which version of LP_XMLConverter do you use?

If you start LP_XMLConverter with the 'help' parameter, then it'll list all the possible commands. The one that converts a GSM object to XML source is 'libpart2xml'.

After getting the XML source you can add the GDLPict section to the .xml file.

Do you see any error message in the cmd prompt when the LP_XMLConverter.exe crashes?

Regards, Akos


Hi!

Thank you for your answer!

But how to start LP_XMLConverter with the 'help' parameter?

I used the LP_XMLconverter is belong to Archicad 18.There had no any

error message in the cmd prompt when the LP_XMLConverter.exe

crashes .

It just had a short time to running and then automatically quit.

New line in dimension note

$
0
0
Author:ReignBough
Posted: Tue Feb 02, 2016 6:55 am (GMT+1)


I found out that the note in dimension can now be a multi-line. But when I tried using "\n" it was shown as the replacement character "▯" but it is correctly displayed in the settings dialog. When I tried using paragraph marker, "¶", it is shown as it is.
_________________
~ReignBough~
[ArchiCAD 19 INT 3003 FULL]
[Windows 7 Pro Intel Core i5 CPU 750 @ 2.67 GHz 8.00 GB 64-bit OS]


Use gravity for Z position

$
0
0
Author:vuego
Posted: Wed Feb 03, 2016 9:06 am (GMT+1)


My Addon creates API_Element (GDL object) on user specified coordinates acquired with APIIo_GetPointID. X and Y coordinates are ok, Z coordinate is always zero.

I would like to use gravity when picking a point on eg Mesh so Z coordinate gets populated too.

Is this possible?
_________________
ARCHICAD 18, Dell Studio i7, 8Gb Ram, Win7 64bit

Unable to select curtain wall on elevation view

$
0
0
Author:ReignBough
Posted: Fri Feb 05, 2016 5:39 am (GMT+1)


When a curtain wall is placed below storey 0, it cannot be selected. I put two curtain wall, one on storey 0 and the other on storey -1. I then put an elevation marker in front of them. I viewed the elevation marker then select all curtain wall. Only the curtain wall on storey 0 is selected.

This is both on elevation marker and section marker. ArchiCAD 19.
_________________
~ReignBough~
[ArchiCAD 19 INT 3003 FULL]
[Windows 7 Pro Intel Core i5 CPU 750 @ 2.67 GHz 8.00 GB 64-bit OS]

Unable to select curtain wall on elevation view

$
0
0
Author:laszlonagy
Posted: Fri Feb 05, 2016 9:11 pm (GMT+1)


Works for me just fine.
Are you still on build 3003? You could try upgrading to the latest build, many small errors were fixed in the hotfixes.
_________________
Laszlo Nagy, Moderator, Site Admin
ASUS G73SW, i7-2630QM 16 GB RAM
17.3" (1920x1080), NVidia GTX 460M 1.5 GB RAM
60 GB SSD, 750 GB HDD, Win7-64 ENG
AC13-AC19 (64-bit, latest build)
Loving ArchiCAD since 1995

Selecting a tool for object insertion

$
0
0
Author:gehairing
Posted: Mon Feb 08, 2016 4:26 pm (GMT+1)


Hello Smile

I have an Addon that let's me download objects (.gsm, .dor etc...).
After downloading the object the user want's to insert the downloaded object in the current model.

To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).

Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object.

Thanks for the help Wink

Selecting a tool for object insertion

$
0
0
Author:Ralph Wessel
Posted: Tue Feb 09, 2016 12:08 am (GMT+1)


gehairing wrote:
I have an Addon that let's me download objects (.gsm, .dor etc...).
After downloading the object the user want's to insert the downloaded object in the current model.

To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).

Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object

Take a look at the following API functions:
1) APIEnv_SetToolBoxModeID to set the active tool, and …
2) ACAPI_Element_ChangeDefaults to set the object to be placed
_________________
Ralph Wessel
Cadimage

Viewing all 564 articles
Browse latest View live