Forum Replies Created
-
AuthorPosts
-
Péter Baksa
KeymasterHi,
There is some information about texture mapping here, does it help you?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterIf this could be in a 2d, 3d or UI script, you could use request here, and set project_number as a variable, not a parameter.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterWhat are you planning to do with the parameter in which part of the name should be stored? Why can’t you use the request where you would use the parameter?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterIt doesn’t work in parameter script. The request page of the manual lists these exceptions.
There is no way around. Why do you need to store it as parameter, why can’t you work with the current value (2d, 3d, ui scripts)?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterHi, REQUEST (“Name_of_plan”, “”, name) should work. What is your exact code?
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterThe license type applies to the object you are creating. The user can see it in the tool settings window.
It is also used by https://bimcomponents.com if an object is uploaded there.
I can’t give you legal advice, but I think you should have your users accept the details of your own commercial license agreement on your site before download, and probably package your code as lcf and include a license agreement there also, or a copyright notice in the source code.Attachments:
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterRND returns the same sequence of random numbers in each run. The sequence is different for each placed object. This makes it possible to create randomized objects (eg. trees) that look the same on different 3d views (different sections, animated fly-through rendering).
It is possible to get the time using REQUEST(“DateTime”,…).
You can convert the returned string to a number with SPLIT.
Use that in a loop to get different number of random numbers in each run.n = REQUEST ("DateTime", "%S", datetimestring) split(datetimestring, "%n", rndseed) for i = 1 to rndseed + 1 random = int(rnd(100)) next i text2 0,0, str(random, 1, 0)Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterAs long as the properties aren’t deleted by the user in Options / Property Manager.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterThe property GUIDs are project-dependent, a default value of the library part wouldn’t work in another plan.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterI couldn’t get the second one to work either.
The parameter list in the GDL editor is not connected to anything in the UI script, it is only affected by the parameter script.
You can’t get the property GUIDs in the parameter script, that’s why the UI_CUSTOM_POPUP_LISTITEM and UI_CUSTOM_POPUP_INFIELD were created.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterYou could try to search for the file with the FileMan add-on (if it’s on disk, not in the loaded libraries).
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEOctober 29, 2019 at 11:52 in reply to: To add text to an object and make the text to follow a hotspot and be always hor #18335Péter Baksa
KeymasterHi Ricardo,
rotation is always relative to the origin, so first move the origin to the anchor point, rotate, then draw the text at 0,0.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEOctober 28, 2019 at 10:07 in reply to: LP_XMLConverter – SIGINT opens GRAPHISOFT Bug Reporter #18322Péter Baksa
KeymasterPlease submit this description with the bug report if you haven’t already.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterHi Joachim,
Yes, it is possible. ROTX -90, then cut with a crescent-shaped polygon.
For example, this cuts a niche when placed properly (you’d have to handle left and right curved walls, and flipped/mirrored state too):hotspot 0,0,0 rotx -90 _wallRadius = sqr(WIDO_ORIG_DIST **2 + A **2 / 4) dict _arcCenter _arcCenter.x = 0 _arcCenter.y = -WIDO_ORIG_DIST ! surface of wall dict _faceCircle _faceCircle.center = _arcCenter _faceCircle.radius = _wallRadius - WIDO_SILL ! chord at window plane dict _chord _chord.points[1].x = -A/2 _chord.points[1].y = 0.0 _chord.points[2].x = A/2 _chord.points[2].y = 0.0 ! project points of chord to _faceCircle, from _arcCenter centrally dict _faceArc call "BasicGeometry" parameters iFunction = 18, ! BasicGeometry.PROJECT_POINTS_CIRCLE_2D points2D = _chord, pointFrom = _arcCenter, circleA = _faceCircle, returned_parameters _faceArc! should have exactly 1 intersection hotspot _arcCenter.x, _arcCenter.y, 0 hotspot _faceArc.points[1].x, _faceArc.points[1].y, 0 hotspot _chord.points[1].x, _chord.points[1].y, 0 hotspot _faceArc.points[2].x, _faceArc.points[2].y, 0 hotspot _chord.points[2].x, _chord.points[2].y, 0 put _arcCenter.x, _arcCenter.y + _wallRadius, 1+4+8+16+64 put _arcCenter.x, _arcCenter.y, 931 put _chord.points[1].x, _chord.points[1].y, 3031 put _faceArc.points[1].x, _faceArc.points[1].y, 31 put _arcCenter.x, _arcCenter.y + _faceCircle.radius, 0 resol WALL_RESOL wallniche NSP / 3, 1, 2, ! n, method, status 0, 0, 1, ! rx, ry, rz B, ! d use(NSP) ! x, y, s mulx -1 wallniche NSP / 3, 1, 2, ! n, method, status 0, 0, 1, ! rx, ry, rz B, ! d get(NSP) ! x, y, s del 1Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter Baksa
KeymasterWrite a WHILE loop that compares the value to each value in the array, and terminates when found.
If you need to use it in many places with many arrays, write it as a macro.Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
AuthorPosts
