y to facilitate the help.
Private Sub RunScript(ByVal x As Boolean, ByVal Ids As List(Of Guid), ByRef A As Object)
If x ThenBB = New BLABLA(ids)A = BB.CurvaElseIf BB IsNot Nothing Then BB.timer.Stop()End If
End Sub
'<Custom additional code>
Dim BB As BlABLA
Public Class BLABLAPublic Curva As curvePrivate Cache As list(Of point3d)Private IDs As list(Of guid)
Sub New(_ids As list(Of guid))IDs = _idsDim points As New list(Of point3d)For Each id As guid In idsDim rh As rhinoobject = rhinodoc.ActiveDoc.Objects.Find(id)Dim pt As Rhino.Geometry.Point = DirectCast(rh.Geometry, rhino.Geometry.Point)If pt is Nothing Then Continue Forpoints.add(pt.Location)Nextcache = pointscurva = curve.CreateInterpolatedCurve(points, 3)timer = New system.Windows.Forms.Timertimer.Interval = 100timer.Start()
End Sub
Public WithEvents timer As system.Windows.Forms.Timer
Private Sub Tick(sender As Object, e As System.EventArgs) Handles timer.Tick
For i As int32 = 0 To ids.count - 1Dim rh As rhinoobject = rhinodoc.ActiveDoc.Objects.Find(ids(i))Dim pt As Rhino.Geometry.Point = DirectCast(rh.Geometry, rhino.Geometry.Point)If pt Is Nothing Then Continue For
If Not pt.Location.Equals(cache(i)) ThenUpdateOutput()
End Ifcache(i) = pt.LocationNextEnd Sub
Private Sub UpdateOutput()'HERE I NEED UPDATE THE A OUTPUTrhinoapp.WriteLine("Change")End Sub
End Class…
surface edges and use the Bowerbird BB Offset component, or the Polyline Offset in StudioAvw plug-in. This way you can avoid the whole fillet-first-then-offset approach you were trying.…
ort and export from the images below and also from the HELP file of DB in attachments (Page 71: Importing Geometric Data; Page 78-80: Import 3 - D CAD Data). In their HELP file, they mention about "import geometric data".
However, regarding the input of schedules, loads, constructions and etc., DB normally uses "Component " and "Template" (Page 29: Templates And Components; Page 591: Templates; Page 533: Components). "Templates" are databases of typical generic data, including Activity templates, Construction templates, Glazing templates, Facade templates, HVAC templates, Location Templates, and etc. "Component " are databases of individual data items (e.g. a construction type, material, window pane).
Both "Component " and "Template" are allowed to be imported and exported by using "Import / Export library data" command (.ddf format - DB Database File; Page 734: Import Components/Templates, Export Components/Templates). DB also allows us to build up our own libraries of templates and components (Page 731: Library Management; Page 733: Template Library Management).
In order to import both geometric information and other information related to schedules, loads, constructions and etc. from GH to BD, we supposed the following two ways:
1. GH(HB+GB) --> gbXML (both geometric and "Component " and "Template" information) --> DB
This is the way we most prefer. We did see information related to schedules, loads, constructions encoded in the gbXML file generated by GB, but still do not know the reason why DB did not take this information (I also mentioned this in Q6 within the gh file). We assume this might because the gbXML file we create encodes the schedules based on a different template / schema than the one DB expects. We also post this question to the DB forum for help.
(http://www.designbuilder.co.uk/component/option,com_forum/Itemid,25/page,viewtopic/p,13755/#13755)
2. GH(HB+GB) --> gbXML (geometric information only) + .ddf ("Component " and "Template" information only) --> DB
If the first way doesn't work and DB only takes geometric information from the gbXML, then we might think of the other way - generating the .ddf files from GH(HB+GB) to pass the schedule, load and construction information to DB.
I was wondering if it is feasible for HB and GB to have this function? And what is your suggestion to achieve this?
In addition, we notice that DB can export XML files (not gbXML), so we are trying to figure out if DB also accepts / reads the XML file. If so, we might be able to convert the gbXML (with both geometric and schedule information) to XML. What do you think about that?
Thank you again for all your help!
Best,
Ding
DB import
DB export
Template libraries
Component libraries
…
Sub RunScript(ByVal x As OnCurve, ByVal y As Integer)
'your code here…
Dim BB As OnBoundingBox
BB = x.BoundingBox
Dim minPt As On3dPoint
minPt = BB.Corner(0, 0, 0)
Dim minx As Double = minPt.x
Dim miny As Double = minPt.y
Dim minz As Double = minPt.z
Dim maxPt As On3dPoint
maxPt = BB.Corner(1, 1, 1)
Dim maxx As Double = maxPt.x
Dim maxy As Double = maxPt.y
Dim maxz As Double = maxPt.z
Dim sx As Double = maxx - minx
Dim sy As Double = maxy - miny
Dim sz As Double = maxz - minz
Dim i As Integer
Dim RdPts As New List(Of On3dPoint)
Dim aa As Double
Dim dd As Double
Dim cc As Double
Randomize()
For i = 0 To y
Dim num As New Random
Dim Rnd As Integer = num.Next(1, 10)
aa = minx + sx * Rnd / 10
dd = miny + sy * Rnd / 10
cc = minz + sz * Rnd / 10
Dim pt As New On3dPoint (aa, dd, cc)
RdPts.Add(pt)
Next
A = RdPts…
): 'Rhino.Geometry.TextEntity' does not contain a definition for 'FontIndex' and no extension method 'FontIndex' accepting a first argument of type 'Rhino.Geometry.TextEntity' could be found (are you missing a using directive or an assembly reference?) (line 92) 2. Error (CS1061): 'Rhino.Geometry.TextEntity' does not contain a definition for 'AnnotativeScalingEnabled' and no extension method 'AnnotativeScalingEnabled' accepting a first argument of type 'Rhino.Geometry.TextEntity' could be found (are you missing a using directive or an assembly reference?) (line 94)…